Skip to content
This repository has been archived by the owner on Aug 1, 2018. It is now read-only.

CORS error "Response for preflight is invalid (redirect)" #66

Open
kubido opened this issue Jan 25, 2016 · 7 comments
Open

CORS error "Response for preflight is invalid (redirect)" #66

kubido opened this issue Jan 25, 2016 · 7 comments

Comments

@kubido
Copy link

kubido commented Jan 25, 2016

Hi,

I've follow the instruction in the docs. setup the aws credentials in initializers.
added cors configuration to the bucket but still get this error "Response for preflight is invalid (redirect)?

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

How do I handle this?
screen shot 2016-01-25 at 4 02 56 pm

@huyqdang
Copy link

Have you found out the way to fix it ?

@phanikmr
Copy link

http://www.corrspt.com/blog/2016/01/17/uploading-to-amazon-s3-response-for-preflight-is-invalid-redirect-307/

Basically, this post says to wait for 2 hours(approx.) if you created new bucket

@prameshbajra
Copy link

After waiting for 2 hours did you guys solve the problem? @hokakede1 @phanikmr

@phanikmr
Copy link

phanikmr commented Jul 1, 2018

@prameshbajra
I issue was solved after waiting.
https://github.com/phanikmr/S3-Uploader

@prameshbajra
Copy link

@phanikmr I waited for 4 with no resolution.
Any idea what might be wrong?

@phanikmr
Copy link

phanikmr commented Jul 2, 2018

did you set your s3 region correctly?

@prameshbajra
Copy link

prameshbajra commented Jul 2, 2018

@phanikmr yea I did. I verified it a million times may be.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants