jQuery XML REST Access-Control-Allow-Origin

前端 未结 3 1622
孤独总比滥情好
孤独总比滥情好 2020-12-11 03:56

I am calling Version One REST API and keep getting XMLHttpRequest cannot load https://www10.v1host.com/... Origin http://localhost:8080 is not allowed by Access-Contro

3条回答
  •  孤城傲影
    2020-12-11 04:52

    You can't do a cross domain XMLHttpRequest, period. As for your own parse XML - that would be only possible if you could get an escaped string instead of bare XML from server. There is no magical parse JSON - JSONP technique just requests another script dynamically adding

提交回复
热议问题