Cross domain AJAX request

November 7, 2016 12:20 am Published by Leave your thoughts

Cross domain AJAX call strikes fear to any front-end developer who had the misfortune of having had to do it.

There are no shortage of discussion concerning cross domain AJAX.

http://stackoverflow.com/questions/5750696/how-to-get-a-cross-origin-resource-sharing-cors-post-request-working
http://stackoverflow.com/questions/10636611/how-does-access-control-allow-origin-header-work

This guy goes through all this trouble to explain how to make cross domain AJAX call only to state that cross domain AJAX call will work only if the CORS is enabled. LOL

https://zinoui.com/blog/cross-domain-ajax-request

I am not laughing because I think cross domain AJAX call is easy. I am laughing because I don’t have to do it right now. I won’t be laughing when it’s my turn to do it.

Give the guy a credit.

He developed this header control plugin for WordPress.

https://zinoui.com/blog/http-headers-for-wordpress

Well, do I have a shocker for you today?

I’ve known about CORS proxy for many years.

You can get your own copy here.

https://github.com/Rob–W/cors-anywhere/

Problem? The problem is that you need to install node.js on your server. Yeah, more hassle to avoid hassle.

Nope, this is not what I am about to share with you today.

https://crossorigin.me

ftw

Tags: , ,

Categorized in:

This post was written by hackya