API not working

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
Posts: 9
Joined: 27 Jun 2022, 10:03

API not working

Post by yogin.chauhan »

Hello all,

I am use mantis api in react native app but give a error

Access to XMLHttpRequest at 'https://mydomin/api/rest/issues?page_size=10&page=1' from origin 'http://localhost:19006' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: It does not have HTTP ok status.

How to resolve it?

I am tried to add Header set Access-Control-Allow-Origin "*" but not working.
Post Reply