Quantcast
Channel: Web API
Viewing all articles
Browse latest Browse all 4850

Request headers missing in message handler when using CORS

$
0
0

I have been trying to fix this for a week and I have not got any further.

This relates to a post I did last Saturday: http://forums.asp.net/t/2022456.aspx?Problems+using+CORS+and+a+message+handler

Basically I have implemented CORS in my Web.API and it works just fine. I have also got a message handler in there and the calling clients adds request headers. But when I hit the message handler they are not there. The is a header Access-Control-Request-Headers with value accept, x-signature, x-password, x-psk, x-username, x-stamp which are the 5 headers the client sent.

Later when the code hits the controller I can see the 5 request headers.

If I was to run the client on the same domain and disable CORS the 5 request headers are available in the message handler.

Spent 3 hours of process of elimination and I will admit I am beat for now.

Please help if you can.

Thanks,

Dave Johnson.


Viewing all articles
Browse latest Browse all 4850

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>