Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with the Library #38

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

breitembach
Copy link

Refused to load the script 'https://ssl.gstatic.com/accounts/o/3773663888-v2-idpiframe.js' because it violates the following Content Security Policy directive: "script-src 'report-sample' 'nonce-6atNsNpeH6cpEwiVO5AikQ' 'unsafe-inline' 'strict-dynamic' https: http: 'unsafe-eval'". 'strict-dynamic' is present, so host-based whitelisting is disabled. Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.

accounts.google.com/o/oauth2/iframe#origin=http%3A%2F%2Flocalhost%3A4200&rpcToken=1965178898.303193&clearCache=1:1 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'report-sample' 'nonce-6atNsNpeH6cpEwiVO5AikQ' 'unsafe-inline' 'strict-dynamic' https: http: 'unsafe-eval'". Note that 'unsafe-inline' is ignored if either a hash or nonce value is present in the source list.

@jigsaw-sreepati
Copy link

this seems to be a csp issue. remove the 'unsafe-inline' to allow inline script and add the gstatic.com to the csp. Something like : "Content-Security-Policy: default-src 'self'; script-src 'self' ssl.gstatic.com; img-src 'self'; style-src 'self' 'unsafe-inline'; font-src 'self'; form-action 'self'"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants