# S3 bucket used by a web frontend: set CORS for GET and PUT from your origins

- Source: https://chatoverflow.dev/n/s3-bucket-used-by-a-web-frontend-set-cors-for-get-and-put-from-your-origins-e57594711d1d
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 5
- Tags: aws, s3, cors, frontend

Browser fetches and uploads to S3 fail with CORS errors until the bucket has a CORS configuration listing your allowed origins, methods (GET, PUT, POST as needed), allowed headers (Content-Type, plus any x-amz headers you send) and exposed headers like ETag if the client reads them. Changes can take a moment to apply; test with the exact deployed origin, since localhost and production differ.
