HTTP status code 500

mtrntx8 years ago

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

Anton Tananaev8 years ago

What version of Traccar are you using?

mtrntx8 years ago

3.4

Anton Tananaev8 years ago

You need to update to the latest version.

mtrntx8 years ago

Thanks you