In my ASP.Net Web API Project, i added [Authorize]
attribute to the controller. So when i call the method it is returning error as
"Message": "Authorization has been denied for this request."
How to send Authorize
Headers along with my request.
Controller
[Authorize]
[HttpPost]
public HttpResponseMessage Settings(SettingModel data)
{
--Do i need to check authorize headers manually here?
--code goes here
}
Here it is called
http://localhost/sample/api/Settings
Headers
{
Content-Type: application/json
Authorization: What value need to be send here?
}