Last post Apr 12, 2016 04:08 PM by ozkary
Aug 14, 2015 02:10 PM|IGotYourDotNet|LINK
I'm at a loss, I', having some issues when accessing a WebAPI that I created on my web server. I read and went through the changes for the CORS found here:
and I'm still unable to access my WebAPI from my web page on my web server. I even did this as well:
http://enable-cors.org/server_iis7.html and still no luck. Is there something I'm missing? I have the cors package in the WEBApi code as well. as well as added
to the webapiconfig.cs file.
what else could there be that I'm missing? my service is running on IIS 7, my web page I'm trying to connect to it with is running on IIS 7 as well
Aug 14, 2015 02:59 PM|BrockAllen|LINK
Here's an article on the Web API CORS support:
Aug 14, 2015 03:53 PM|IGotYourDotNet|LINK
I was just able to get it working using Chrome, however, we're an IE shop and its not working in IE.
I'll check out the article BrockAllen, thanks
Sep 03, 2015 11:17 PM|mru22|LINK
I too am unable to get CORS working with IE 10 or 11 if we have the "Allow cross site scripting" disabled in the browser settings.
I have gone through this article more than once and am even using anonymous authentication on the server just the get a basic call to a web api controller working. When enabling CORS i am using the basic three "asterisks" from the examples.
When I look at Fiddler, I see at 404 message. And when I turn on allow cross site scripting everything works as intended.
Our company does use Kerberos and I am beginning to wonder if that would be causing this pain ?
Any thoughts on what else I could try ?
Apr 12, 2016 04:08 PM|ozkary|LINK
For those having the same problem, this article can help provide some clarification about CORS and how to configure your WEB API for CORS. It does work for IE as well. The key is to be able to configure your responses with the Access-Control-Allow-Origin
header for preflight and actual requests. Take a look at the article for details.