I have deployed web api built on .net 4.5 on windows 2008 server, IIS 7.5. I have a CORS handler registered to check in the request is a CORS request and logging the same.
Making a cross-domain call to the web api endpoint above from javascript.. when doing so, I can see the http request "options" going to the endpoint and also getting logged by the IIS. But for some reason, it seems that this request is not reaching the
web api CORS message handler... all other requests of non-options type are reaching that handler.
What can I be missing? thanks in advance.. need help urgently.
narunaram
Member
1 Points
1 Post
Urgent - http request with "options" verb not getting processed by ASP.NET web api
Nov 29, 2012 03:27 AM|LINK
Hi,
I have deployed web api built on .net 4.5 on windows 2008 server, IIS 7.5. I have a CORS handler registered to check in the request is a CORS request and logging the same.
Making a cross-domain call to the web api endpoint above from javascript.. when doing so, I can see the http request "options" going to the endpoint and also getting logged by the IIS. But for some reason, it seems that this request is not reaching the web api CORS message handler... all other requests of non-options type are reaching that handler.
What can I be missing? thanks in advance.. need help urgently.
BrockAllen
All-Star
27522 Points
4901 Posts
MVP
Re: Urgent - http request with "options" verb not getting processed by ASP.NET web api
Nov 29, 2012 03:31 AM|LINK
1) Use a good CORS library.
2) Common issues with CORS in IIS.
DevelopMentor | http://www.develop.com
thinktecture | http://www.thinktecture.com/