Ask A Question

Notifications

You’re not receiving notifications from this thread.

CORS hatchbox.io

THANH .V TRAN asked in Rails

I deployed my app with hatchbox.io but cannt update the image and got the error as below:

Access to XMLHttpRequest at 'https://wellicanbucket.s3.ap-southeast-2.amazonaws.com/wacxzy7llqdcamldoaiuei3r268d?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIASO3GQAHA64L3KQGV%2F20200411%2Fap-southeast-2%2Fs3%2Faws4_request&X-Amz-Date=20200411T043306Z&X-Amz-Expires=300&X-Amz-SignedHeaders=content-md5%3Bcontent-type%3Bhost&X-Amz-Signature=f08b57203d21753f05bf408059c9e2b00122eabd6be87caf2603b0d0bdcb9b4e' from origin 'http://edjl.hatchboxapp.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

So how can I enable CORS on hatchbox.io?

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 82,584+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.