XMLHttpRequest cannot load file. Cross origin requests are only supported for HTTP

后端 未结 7 855
太阳男子
太阳男子 2020-11-22 07:08

I am getting the following error:

XMLHttpRequest cannot load file:///C:/Users/richa.agiwal/Desktop/get/rm_Library/templates/template_viewSettings.html. Cross         


        
7条回答
  •  伪装坚强ぢ
    2020-11-22 07:51

    Depends on your needs, but there is also a quick way to temporarily check your (dummy) JSON by saving your JSON on http://myjson.com. Copy the api link and paste that into your javascript code. Viola! When you want to deploy the codes, you must not forget to change that url in your codes!

提交回复
热议问题