Adding SimpleCORS Policy to CloudFront Distribution #338
whobutsb
started this conversation in
Constructs
Replies: 1 comment
-
I should add I have some JS and CSS resources stored in a S3 bucket being served with CloudFront. I'm currently getting blocked by the CORS policy No 'Access-Control-Allow-Origin' header error, when trying to view my page. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello all! Would someone be able to give me a suggestion on the best way to add the Response headers policy
SimpleCORS
policy to my CloudFront distribution in myserverless.yml
during deployment? Currently I'am manually adding it to my distribution but for ease of deployment it would be great to have it set. I know you can do it in theconstructs.extensions
array, but just need a hint.Here is what I currently have:
I appreciate the help!
Beta Was this translation helpful? Give feedback.
All reactions