Access-Control-Allow-Origin issues

前端 未结 2 1840
悲&欢浪女
悲&欢浪女 2021-02-05 17:51

I have two local rails apps that I would like to talk to each other for testing purposes... one is running on port 3000 and the other on 9292.

But when I make an ajax re

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-05 18:16

    Cross-domain AJAX is generally not allowed for security reasons. JSONP is an option if you are able to use it. If not, you can use something like flXHR to get around this restriction.

    Best of luck!

提交回复
热议问题