Cors Issue (No 'Access-Control-Allow-Origin')
Hi,
I've downloaded and set up the server with no issue and everything works great, however when I try to grab the JSON response from the API I receive a No 'Access-Control-Allow-Origin' error, I took a look at the code to see if I could manually tweak it (just adding a Access-Control-Allow-Origin: * header should probably be enough) but I got lost.
Regards, LH
I agree, this will be good
In Ets2TelemetryController.cs there is a HttpResponseMessage called Get()
just insert this line: response.Headers.Add("Access-Control-Allow-Origin", "*"); after response.Headers.CacheControl = new CacheControlHeaderValue { NoCache = true }; and rebuild the project and publish it to a folder.