[Archive] Content Security Policy settings to use web3auth

:classical_building: Archived Content from Web3Auth Community

This topic was originally posted by githubdiscussions on 1/19/2023.
This content has been migrated from our previous community forum to preserve valuable discussions.


What permissions are required by web3auth to run if you are using CSP to secure your site?

Steps to reproduce the behavior:

  1. Integrate web3auth
  2. Enable CSP on your web server for example using helmet.contentSecurityPolicy
  3. web3auth will fail to run

Would be great to have all CSP settings listed in a block so we can just copy paste:
{
scriptSrc: ["web3auth scripts"],
frameSrc: ["if script use frames"],
styleSrc:
imgSrc:
mediaSrc:
}



Originally posted by: lida-spaceport

Check the discussion at: https://github.com/orgs/Web3Auth/discussions/1227