Skip to content
sefk edited this page Sep 4, 2012 · 1 revision

Bucket policy: make readable by all

{
    "Version": "2008-10-17",
    "Id": "Policy1346708979520",
    "Statement": [
        {
            "Sid": "Stmt1346708972664",
            "Effect": "Allow",
            "Principal": {
                "AWS": "*"
            },
            "Action": "s3:GetObject",
            "Resource": "arn:aws:s3:::stage-c2g/*"
        }
    ]
}

CORS configuration: enable for all

<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
    <CORSRule>
        <AllowedOrigin>*</AllowedOrigin>
        <AllowedMethod>GET</AllowedMethod>
    </CORSRule>
</CORSConfiguration>

Webserving

Website enabled Index Document = index.html

Clone this wiki locally