Always get "Authorization has been denied for this request." ASP.NET Web API
I was creating an ASP.NET Web API today and when I called one of the Web APIs (/api/values) I got the following response:
{"Message":"Authorization has been denied for this request."}
It turns out by default ‘Individual User Accounts” authentication is enabled by default. See Figure 1.
Figure 1, {"Message":"Authorization has been denied for this request."} ASP.NET Web API always default
So what I did was change that to “No Authentication” and I got my testing project up and running real quick, See Figure 2.
Figure 2, {"Message":"Authorization has been denied for this request."} ASP.NET Web API always default, No Authentication
The result were then as expected. Sure I could have enabled some authentication, but just wanted to do some performance testing real fast and nothing else.
["value1","value2"]