0
benjamim created
1 Answer(s)
-
0
Hi,
Cross-Origin Requests are disabled for WebAPI by default because of security. You can see this to enable it: <a class="postlink" href="http://www.asp.net/web-api/overview/security/enabling-cross-origin-requests-in-web-api">http://www.asp.net/web-api/overview/sec ... in-web-api</a>
For example, I allowed all cross origin requests in this example project: <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate-samples/blob/master/SimpleTaskSystem/SimpleTaskSystem.WebSpaAngular/App_Start/SimpleTaskSystemWebModule.cs#L54">https://github.com/aspnetboilerplate/as ... ule.cs#L54</a>