Running traccar server code

Hareem Rehan6 years ago

I am getting this error after running the code .. May be I am not able to install it properly or I am missing a step

app.js:94 Access to XMLHttpRequest at 'file:///api/server' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.
Anton Tananaev6 years ago

The problem is that you are opening local files in browser instead of using proper http connection.