Reputation: 53243
I do not understand why the same web page with the same request creates different Request Headers for Firefox and Internet Explorer.
For example IE has some Authorization info whereas FF seems to me that it is missing that.
What is the main reason that results different Request Headers for different browser? (I assume this will give me a clue why my WCF Service call fails for FF but works in IE)
For Firefox
OPTIONS http://.....
Host: foo.bar.uk
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) Gecko/20100101 Firefox/18.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Origin: null
Access-Control-Request-Method: POST
Access-Control-Request-Headers: content-type
Connection: keep-alive
Pragma: no-cache
Cache-Control: no-cache
For Internet-Explorer
POST http://.....
Accept: */*
Accept-Language: en-us
Content-Type: application/json
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET4.0C; .NET4.0E; InfoPath.3; .NET CLR 3.5.30729; .NET CLR 3.0.30729)
Host: foo.bar.uk
Content-Length: 19...
Connection: Keep-Alive
Pragma: no-cache
Authorization: Basic xyxzyxyxzyxyzyxz
{"Foo":"bar","KungFoo":"Judo",...}
Upvotes: 0
Views: 1339
Reputation: 42027
It seems your Firefox version supports CORS (http://www.w3.org/TR/cors/), whereas your IE version does not.
Upvotes: 1