Closed Dhyanesh97 closed 2 years ago
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' * ">
Any help appreciated.
I think this is not related to this project, it is rather a general problem. You could open an stackoverflow question.
@Dhyanesh97 see if this helps: https://github.com/aws-samples/cloudfront-authorization-at-edge/issues/197 https://github.com/aws-samples/cloudfront-authorization-at-edge/issues/73
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.
Any help appreciated.