how to allow content type= application/json in cors enabled web api in asp.net

I want to send an array of objects in my ajax call and for that i have to use json.stringify and after that i have to set content-type header as ‘application/json’ otherwise data will not be received by the server.


Source: ajax

Leave a Reply