SimonKaluza / jsmodal

Automatically exported from code.google.com/p/jsmodal
MIT License
0 stars 0 forks source link

Add propper header for server side Ajax detection #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Adding:
XMLHttpRequestObjects.setRequestHeader("X-Requested-With", "XMLHttpRequest");

Right after 
XMLHttpRequestObject.open('GET', url, true);

Would solve this. Not sure about if it's fully OK with every browser.

Original issue reported on code.google.com by tfs...@gmail.com on 26 Mar 2014 at 6:32

GoogleCodeExporter commented 9 years ago
It should be :
XMLHttpRequestObject.setRequestHeader("X-Requested-With", "XMLHttpRequest");

Sorry typo.

Original comment by tfs...@gmail.com on 26 Mar 2014 at 6:35