简体   繁体   中英

Limitations on client-side 3rd party querying? (JavaScript/AJAX)

What are the limitations on having a client query 3rd party URLs (ones with different domains than my site)?

Would I be able to make their browser query another site "behind the scenes" and send the response to me?

Would I be able to make them store a cookie from that site?

The reason I want to do this all is because I want to basically use another site as an API, even though they haven't written one. In case you're wondering I do have permission to fetch from this site.

The reason I wanted to do it client-side is for speed reasons.. If my server doesn't have to do all the queries then things will go faster for my users..

You're not allowed to make XHRs to other domains.

Two options:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM