Use JSONP to load an html page

后端 未结 6 788
不思量自难忘°
不思量自难忘° 2020-11-27 17:13

I\'m trying to load an external page using JSONP, but the page is an HTML page, I just want to grab the contents of it using ajax.

EDIT: T

6条回答
  •  感动是毒
    2020-11-27 17:27

    I've got three words for you: Same Origin Policy

    Unless the remote URL actually supports proper JSONP requests, you won't be able to do what you're trying to. And that's a good thing.

    Edit: You could of course try to proxy the request through your server …

提交回复
热议问题