CORS error when accessing local JSON file using vanilla JS AJAX request?

后端 未结 2 1297
我在风中等你
我在风中等你 2020-12-11 19:11

I am trying to use a vanilla JS AJAX request to pull back a JSON string from a locally stored JSON file (specifically trying not to use JQuery) - the below code is based on

2条回答
  •  时光说笑
    2020-12-11 19:25

    Basically as Felix, error msg, et al below say - simply can't run an AJAX request against a local file.

    Thanks.

提交回复
热议问题