Rails Responds with 404 on CORS Preflight Options Request

前端 未结 7 1342
既然无缘
既然无缘 2020-12-10 00:42

I\'m creating a set of services using Rails 4, which I am consuming with a JavaScript browser application. Cross-origin GETS are working fine, but my POSTs are failing the p

7条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-10 01:00

    Ran into this issue with Rails 4 and Devise. I ended up using Rack CORS middleware gem by Calvin Yu. A great complimentary blog article.

提交回复
热议问题