API not working
Posted: 27 Jul 2022, 06:38
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.
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.