GET api request - CORS problem

Hi,

I'm creating a service to manage the connection thru api, but I'm getting some issues with CORS.

I can call the POST /api/v1/oauth2/token, get the token, etc.

But when I try to call the GET /api/v1/ping or any other GET method, I get a preflight error:

Failed to load resource: the server responded with a status of 405 ()
Failed to load https://webapi.teamviewer.com/api/v1/ping/: Response for preflight does not have HTTP ok status.

If I test with postman, or if I deactivate the CORS in the browser, it works.

What can I do?

Thanks

Ruben