Error – Request header field Content-Type is not allowed by Access-Control-Allow-Headers in preflight response.
I was working on a project where I wrote a web method and called this web method from JQuery.While accessing the web method I got this error –“Request header field Content-Type is not allowed by Access-Control-Allow-Headers in preflight response.”In debugging, I couldn’t find any issue with the code either in C# or in JQuery.Then I … Read more