Welcome Guest Search | Active Topics | Sign In | Register

WebView custom headers Options
Bjolja
Posted: Wednesday, April 8, 2015 11:12:22 AM
Rank: Newbie
Groups: Member

Joined: 4/8/2015
Posts: 1
Hi,
Is there a way to allow custom headers when sending XMLHttpRequest? I use
request.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
but this header is not sent, and not treated as an AJAX-call on my server-end

How can I fix this?
eo_support
Posted: Thursday, April 16, 2015 11:40:27 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Hi,

setRequestHeader is the correct way to do this. You must call it after open and before send. Otherwise it won't work.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.