Skip to content

Commit

Permalink
fix: csp connect-src allow self (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
vasco-santos committed Aug 31, 2022
1 parent 97a937b commit d8f7aef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/edge-gateway/src/gateway.js
Expand Up @@ -537,7 +537,7 @@ function getTransformedResponseWithCustomHeaders(response) {

clonedResponse.headers.set(
'content-security-policy',
"default-src 'self' 'unsafe-inline' 'unsafe-eval' blob: data: https://*.githubusercontent.com; form-action 'self' ; navigate-to 'self'; connect-src https://polygon-rpc.com https://rpc.testnet.fantom.network "
"default-src 'self' 'unsafe-inline' 'unsafe-eval' blob: data: https://*.githubusercontent.com; form-action 'self' ; navigate-to 'self'; connect-src 'self' https://polygon-rpc.com https://rpc.testnet.fantom.network "
)

return clonedResponse
Expand Down

0 comments on commit d8f7aef

Please sign in to comment.