active_admin_editor
active_admin_editor copied to clipboard
CORS error "Response for preflight is invalid (redirect)"
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?
Have you found out the way to fix it ?
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
After waiting for 2 hours did you guys solve the problem? @hokakede1 @phanikmr
@prameshbajra I issue was solved after waiting. https://github.com/phanikmr/S3-Uploader
@phanikmr I waited for 4 with no resolution. Any idea what might be wrong?
did you set your s3 region correctly?
@phanikmr yea I did. I verified it a million times may be.