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

Content Security Policy: The page’s settings blocked the loading of a resource at inline (“script-src”). #36

Closed
Dhyanesh97 opened this issue Apr 26, 2022 · 2 comments

Comments

@Dhyanesh97
Copy link

Dhyanesh97 commented Apr 26, 2022

image

I have configured s3 Static website + CloudFront with lambda@Edge + aws cognito.
When I open Cloudfront URL after authenticating with cognito it shows above errors that it is not able to load the page due to security issues.

Link to refer: https://medium.com/@saurishkar/setting-up-aws-http-authentication-on-cloudfront-s3-using-cognito-and-lambda-edge-166ee38d471e

added below line to HTML but still gives an error.

<meta http-equiv="Content-Security-Policy" content="default-src *; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval' * ">

image

Any help appreciated.

@qoomon
Copy link
Owner

qoomon commented Apr 26, 2022

I think this is not related to this project, it is rather a general problem. You could open an stackoverflow question.

@qoomon qoomon closed this as completed Apr 26, 2022
@tcarrondo
Copy link

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

No branches or pull requests

3 participants