Permission Denied Error XMLHttpRequest

后端 未结 3 1095
梦毁少年i
梦毁少年i 2021-01-25 13:33
  
    


        
3条回答
  •  忘掉有多难
    2021-01-25 14:01

    XmlHttpRequest can only be used to call services local to the domain/server from where the page is being served.

    Thus, if you're serving a page from:

    http://www.example.com/page1
    

    You cannot make an XmlHttpRequest to:

    http://www.sample.com/webservice
    

提交回复
热议问题