Accessing Client's 'localhost' from JavaScript Online

后端 未结 5 779
旧时难觅i
旧时难觅i 2021-01-05 09:01

this is what I am trying to do.

  1. I have made a few .html pages with JavaScript code in it and hosted them on a Yahoo server.

  2. Now when a clien

5条回答
  •  时光取名叫无心
    2021-01-05 09:20

    Due to policy restrictions browsers do not allow you to send XMLHttpRequest to domains different than the domain hosting the web page which in your case is Yahoo.

提交回复
热议问题