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/
@caremeninfo,
Thanks for reaching out, I am not overly familiar with the Cors policy however from what I've found online this seems to be a Javascript error that occurs when the Same Origin Policy is preventing the response form from being received.
To resolve this you would need to return CORS headers in your response.
CORS - https://developer.mozilla.org/en-US/docs/Glossary/CORSCORS errors - https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors
If you have any questions you can create a support request with us HERE.
Self-help & Learning
Level up your skills and find answers across all MYOB products
Help Guides
MYOB Academy