Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Does Amazon S3 allow custom headers? Or am I out of luck?

Access-Control-Allow-Origin: *

Thanks in advance!

share|improve this question

Amazon allows you to enable CORS for S3 bucket. See:

share|improve this answer

S3 does not support the Access-Control-Allow-Origin header.

share|improve this answer
This answer is out of date. – iWasRobbed Sep 10 '14 at 1:16

I believe you can, as in the S3 console, there's a tab in the properties window for each file labeled 'Metadata', which contains a 'Content-Type' key by default, that corresponds to the extension of the file. It's not unreasonable to assume that additional keys would be sent as headers too.

But in the end, the easiest way to find out for sure would be to put up a small test file, add some metadata, download the file, and look at the headers.

share|improve this answer
Thanks for reply! At this time Amazon S3 supports only Content-Type, Content-Language, Expires, Cache-Control, Content-Disposition, and Content-Encoding headers. – Baggz Jan 27 '11 at 13:57

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.