jQuery ajax request being block because Cross-Origin

后端 未结 4 1764
慢半拍i
慢半拍i 2020-11-30 08:42

How to get content from remote url via ajax?

jQuery ajax request being block because Cross-Origin

Console Log

Cross-O

4条回答
  •  南方客
    南方客 (楼主)
    2020-11-30 09:11

    I solved this by changing the file path in the browser:

    • Instead of: c/XAMPP/htdocs/myfile.html
    • I wrote: localhost/myfile.html

提交回复
热议问题