Forum Discussion

caremeninfo's avatar
3 years ago

'https://api.myob.com/accountright' from origin 'http://localhost:8080' has been blocked by CORS policy

I'm tring to request company files via the following endpoint from localhost

https://api.myob.com/accountright/

 however, it always comes back with CORS error

Access to XMLHttpRequest at 'https://api.myob.com/accountright' from origin 'http://localhost:8080' 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 resourc

 

By the way, I've already successfully get the access_token and refresh_token from the https://secure.myob.com/oauth2/v1/authorize/

1 Reply

Replies have been turned off for this discussion