# Access to fetch from origin has been blocked by CORS policy [TOC] ###### tags: `aws` `s3` --- ## Open the Amazon S3 console and find the bucket you want to configure in the AWS Web Services Management Conole ## Choose Permissions in the pane that opens ## Choose CORS Configuration on the Permission tab ## Enter your CORS configuration in the CORS Configuration Editor and then choose Save ```json [ { "AllowedHeaders": [ "*" ], "AllowedMethods": [ "HEAD", "GET", "PUT", "POST", "DELETE" ], "AllowedOrigins": [ "https://www.example.org" ], "ExposeHeaders": [ "ETag", "x-amz-meta-custom-header" ] } ] ``` ## Reference - [**AWS** » **Documentation** » **JavaScript SDK** » **Developer Guide for SDK Version 3** » **Cross-origin resource sharing (CORS)**](https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/cors.html)