I created an asp.net web api 2 service with individual account protection. I am trying to call it an AngularJs form according to this example: http://www.codeproject.com/Articles/742532/Using-Web-API-Individual-User-Account-plus-CORS-En couldn't get this to work, so added some configuration from here: How to do CORS authentication in WebAPI 2?
and this error cannot pass: XMLHttpRequest cannot load 'serverRegisterUrl'. The header "Access-Control-Allow-Origin" contains several clientUrl, *, * 'values, but only one is allowed. Therefore, the original client "client" does not have access.
I do not understand this error message. I think the line Access-Control-Allow-Origin means that you can specify the source clientUrl, all headers, all methods
I do not understand the problem. If I should just point out the source somewhere somewhere, I donβt know where it is.
I run this on Microsoft Azure and use vs express to upgrade version 2 for websites just in case.
Unfortunately, I had to deduce my links from the error message, because I need at least a 10 reputation here to post more than two links in the question.
angularjs cors azure asp.net-web-api2
Alex smotritsky
source share