I'm try to use the traccar api on my own custom interface
I can login into the api but when I try to use for example get a devices only obtain a HTTP status code 500
The all complete error message is
XMLHttpRequest cannot load http://myserver:8082/api/devices. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://myserver' is therefore not allowed access. The response had HTTP status code 500.
But with the same code I try to your demo server and works fine is possible that my server needs some configuration
What version of Traccar are you using?
You need to update to the latest version.
I'm try to use the traccar api on my own custom interface
I can login into the api but when I try to use for example get a devices only obtain a HTTP status code 500
The all complete error message is
XMLHttpRequest cannot load http://myserver:8082/api/devices. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://myserver' is therefore not allowed access. The response had HTTP status code 500.
But with the same code I try to your demo server and works fine is possible that my server needs some configuration