XMLHttpRequest cannot load.?

后端 未结 3 1619
耶瑟儿~
耶瑟儿~ 2021-02-07 00:55

I by chrome->Inspect element->console get this error:

XMLHttpRequest cannot load. Origin is not allowed by Access-Control-Allow-Origi

3条回答
  •  旧时难觅i
    2021-02-07 01:25

    I recommend you to read this: http://www.fbloggs.com/2010/07/09/how-to-access-cross-domain-data-with-ajax-using-jsonp-jquery-and-php/

    It is very wel explained... the whole point is that you need to return your JSON in a callback-function way

提交回复
热议问题