What parameters on a $.ajax
must I set to try and mask the AJAX-request as a normal request? I guess it has to do with the right headers.
I think a big part of the problem is that when working on a local .html-file, jQuery sets the header-value for Origin
to null
.
Is there any way to take out the Origin-header?
At this moment I'm getting different results from the same URL if I surf to it through the web-browser and when I do an jQuery AJAX-request.