New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document CORS configuration for direct uploads #32581
Comments
Absolutely, this is very important, as debugging it is not trivial. Particularly, which headers must be allowed. On Google Cloud Storage, these are the headers that I need to allow for direct upload to work properly (the
|
Hi @georgeclaghorn and @lucaong , I did not configurate the header to direct upload, but attached a policy to EC2 with Should I let my bucket public for |
This issue has been automatically marked as stale because it has not been commented on for at least three months. |
I spent few hours of my sunday figuring this out. Thought, I should write about this, so the next person implemetating direct uploads can save time. [ci skip] Reviews welcome.
fixed via #34028 |
This just bit me in production, I would really appreciate documentation on this! |
To use direct uploads with a cloud storage service like S3 or Google Cloud Storage, you must configure the service to accept cross-origin requests from all of your application’s domains. We neglect to mention this in the guides, leaving Active Storage users to stub their toes when direct uploads fail in production.
The text was updated successfully, but these errors were encountered: