From dcd0cd90b6b85e775865a9ed863f502ee7787a8a Mon Sep 17 00:00:00 2001 From: Tom Beynon Date: Fri, 3 Jun 2022 20:04:59 +0100 Subject: [PATCH] Force allow origin * --- proxy/proxyController.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/proxy/proxyController.js b/proxy/proxyController.js index 5f2f6bc..e8d2fcd 100644 --- a/proxy/proxyController.js +++ b/proxy/proxyController.js @@ -159,7 +159,8 @@ const ProxyController = (client, registry) => { followRedirects: true, agent: url.protocol === 'https:' ? httpsAgent : httpAgent, headers: { - 'accept-encoding': '*;q=1,gzip=0' + 'accept-encoding': '*;q=1,gzip=0', + 'access-control-allow-origin': '*' } } ctx.req.oldPath = ctx.req.url