All threads / DigitalOcean Spaces CORS configuration for AJAX POST requests

Ask A Question

Notifications

You’re not receiving notifications from this thread.

DigitalOcean Spaces CORS configuration for AJAX POST requests

Masud Hossain asked in Rails

Traditional file upload (click upload and than click submit) works fine, but when i try to use the jquery fileupload with AJAX to make a post request to the server, it'll return a CORS error. I saw that Digitalocean had cors settings, but only for GET, PUT, and DELETE. I'm assuming not having POST is the issue here.

Any idea how I can get POST to work? (I'm using hatch to push site to production if that helps).

Join the discussion

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

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

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

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2020 GoRails, LLC. All rights reserved.