简体   繁体   中英

Does Ajax - cross domain request return the request header?

I know that the ajax-cross domain call will not return the data from server.

however, does it return a http header, like 200, 404..etc?

It doesn't actually fire the request. If it did, CSRF would be almost impossible to stop...

You can read more about it here and here

But, if you want to fetch content from a different source, check out JSONP

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