Consuming Azure API using Jquery (AJAX)

Masanipally, Ravindranath 6 Reputation points
2022-09-28T09:08:08.037+00:00

Hi,

I'm consuming Azure API in Jquery using AJAX method, getting the error "Access to XMLHttpRequest at XXX from origin YYY has been blocked by CORS policy: Response to preflight request doesn't pass access control check: Redirect is not allowed for a preflight request".

While running the API in Postman, able to get results.

But getting error while using in the Code. Do i need to add any more parameters.

Thank you.

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,447 questions
{count} vote

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.