S3 CORS
- Consider while using
S3forStatic Website Hosting - To allow cross-region request, we need to
enable CORSinS3 - We can define specific origin or any origin using
* - For
AllowMethod, we can use the followings - GET
- PUT
- POST
- DELETE
- HEAD
- To allow sites,
httpandhttps, we have to put 2Allow OriginURL
CORS Rules
AllowedOrigin: Specify the origins, can make the cross domain requestAllowedMethod: Specify the cross-domain request methods,GET,PUT,POST,DELETE,HEADAllowedHeader: Specify the preflight allowed headers
CORS Rules Element
MaxAgeSeconds: Amount of time browser cache the responseExposeHeader: :TODO