amazon web services - S3 hosting over CloudFront is serving application/octet-stream instead of HTML -
issue: s3 static hosting url serving right html page none of other url working fine. instead, download index.html file on web browser. request here because i've tried solutions found in research.
domain: http://amber.fidento.com (via cloudflare)
s3 static web hosting url: http://amber.fidento.com.s3-website-us-east-1.amazonaws.com
cloudfront distribution url: d35jbnkk7p2igl.cloudfront.net
using curl -i on each of above urls, application/octet-stream on output of 1st , 3rd url , text/html on 2nd.
additional info:
cors configuration:
<allowedorigin>*</allowedorigin> <allowedmethod>get</allowedmethod> <maxageseconds>3000</maxageseconds> <allowedheader>authorization</allowedheader>
bucket policy:
{ "version": "2012-10-17", "statement": [ { "sid": "publicreadgetobject", "effect": "allow", "principal": "*", "action": "s3:getobject", "resource": "arn:aws:s3:::amber.fidento.com/*" } ] }
index.html has metadata set text/html
Comments
Post a Comment