MitchEff
MitchEff

Reputation: 1557

S3 - blocks any CORS request, no matter what

Okay, so I have an S3 bucket that's totally public, with the loosest CORS config I can think of:

<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration>
    <CORSRule>
        <AllowedOrigin>*</AllowedOrigin>
        <AllowedMethod>GET</AllowedMethod>
        <AllowedMethod>HEAD</AllowedMethod>
        <AllowedHeader>*</AllowedHeader>
    </CORSRule>
</CORSConfiguration>

...and I still get the classic No 'Access-Control-Allow-Origin' header is present on the requested resource.

I've followed every other StackOverflow thread/tutorial/etc I can find. I'm not using CloudFront or any other CDN, and it's just a basic AJAX request for a PDF.

Is... there something I'm missing? I'm out of ideas here.

Upvotes: 1

Views: 57

Answers (1)

MitchEff
MitchEff

Reputation: 1557

Eugh. Okay, it turns out Chrome just gives up on any CORS request from localhost. I suppose I'll just use Firefox for this project.

Cheers new_user and Quentin for your help!

Upvotes: 1

Related Questions