Make a Cross-Domain request for XML from a local file

前端 未结 2 1097
你的背包
你的背包 2021-01-22 09:35

I am not sure if this is even possible. Basically I want to load a local html file on a client PC and have it make a request to a remote server. The data served up by the server

2条回答
  •  梦毁少年i
    2021-01-22 10:24

    Regardless of payload type JSON or XML what you are doing is JSONP and the result is a javascript function call. So the response must be a valid javascript function call with XML data as input to that function.

提交回复
热议问题