Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Force Amazon S3 to send Access-Control-Allow-Origin header by default

S3 response me Access-Control-Allow-Origin header only if send to him Origin and Access-Control-Request-Method. Is there way that S3 will response Access-Control-Allow-Origin by default, without any special headers?

like image 913
redexp Avatar asked Sep 26 '13 18:09

redexp


1 Answers

According to the W3C CORS spec, the CORS response headers should only be included if the request contains an Origin header.

S3 follows this spec so it's not possible to force it to always send the CORS response headers.

like image 98
dcro Avatar answered Jan 03 '23 15:01

dcro