11

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

Access-Control-Allow-Origin: *
Baggz
  • 211
  • 2
  • 4

3 Answers3

4

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

https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html#how-do-i-enable-cors

Charlie Dalsass
  • 616
  • 6
  • 4
3

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

https://forums.aws.amazon.com/thread.jspa?threadID=34281

Jared
  • 39
  • 2
0

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.

James
  • 265
  • 2
  • 6
  • 1
    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