![]() To forward the headers to the origin server, CloudFront has two pre-defined policies depending on your origin type: CORS-S3Origin and CORS-CustomOrigin. ![]() If your origin server is an Amazon S3 bucket, then configure your distribution to forward the following headers to Amazon S3: Configure the CloudFront distribution to forward the appropriate headers to the origin serverĪfter you set up a CORS policy on your origin server, configure your CloudFront distribution to forward the origin headers to the origin server. Set up a CORS policy on your custom origin or Amazon Simple Storage Service (Amazon S3) origin. ![]() If CORS headers are not returned in the response, then the origin server is not correctly setup for CORS. If the CORS policy allows the origin server to return the Access-Control-Allow-Origin header, you see a response similar to the following: HTTP/1.1 200 OK Replace with the URL of the resource that's returning the header error. Replace with the required origin header. Run the following command to confirm the origin server returns the Access-Control-Allow-Origin header. Note: If you receive errors when running AWS Command Line Interface (AWS CLI) commands, make sure that you’re using the most recent AWS CLI version.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |