How to request another domain using Ajax in jQuery

I need to make a request in another domain using Ajax in jQuery!

Should i use iframe?

Edited by:

On a working chat facebook.com, with several different domain names?

GET http://www.facebook.com/ajax/presence/reconnect.php?__a=1&reason=6&iframe_loaded=false&post_form_id=23be2df75b74a0bcb61358814c56ba4f 200 OK

GET http://0.50.channel.facebook.com/x/2562941315/4271808869/true/p_1529934952=2 200 OK

I need something like ...

+3
source share
3 answers

- .

.

JSONP

script .

-

, . cURL . , .

+6

. JSONP, <script> .

+4

Source: https://habr.com/ru/post/1771221/


All Articles