CORS issue when accessing authorize endpoint from localhost
Hi there,
I am trying to access the /authorize endpoint from locahost and getting CORS issue despite setting all the required CORS headers in my app code. The same endpoint works pretty well in postman and had no issues with CORS.
I have reached out to the API support but did not get the relevant support from them. Any pointers to resolve the issue is much appreciated.
The actual error is :
Access to fetch at 'https://secure.myob.com/oauth2/v1/authorize/' from origin 'http://localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.