Cross domain Ajax request from within js file

后端 未结 7 1932
清酒与你
清酒与你 2020-11-30 10:17

Here\'s the problem:

1.) We have page here... www.blah.com/mypage.html

2.) That page requests a js file www.foo.com like this...



        
相关标签:
7条回答
  • 2020-11-30 11:12

    One option is to implement a proxy page which takes the needed url as a parameter. e.g. http://blah.com/proxy?uri=http://foo.com/actualRequest

    0 讨论(0)
提交回复
热议问题