Page 1 of 1

CORS Error

Posted: Sat Oct 13, 2018 3:07 am
by Anhsirk
Hi

I have an CORS issue while using API.
I can successfully test REST API using Swagger, cURL and Postman.

While using the following code in web page

Code: Select all

    axios.get("http://<self-hosted>/comGpsGate/api/v.1/applications/4/users/15/tracks?Date=2018-9-24", {
            headers: { "Authorization": "wzKGSAkC8UU2...." }
        })
        .then(function(response) {
            console.log(response);
        })
        .catch(function(error) {
            console.log(error);
        })
Screenshot (229).png
Screenshot (229).png (52.41 KiB) Viewed 8019 times

Re: CORS Error

Posted: Mon Oct 15, 2018 12:01 pm
by johan
Please update from beta.gpsgate.com to resolve this issue.

More info: https://forum.gpsgate.com/viewtopic.php?f=29&t=22312

Re: CORS Error

Posted: Mon Oct 15, 2018 2:37 pm
by Anhsirk
Please update from beta.gpsgate.com to resolve this issue.

More info: https://forum.gpsgate.com/viewtopic.php?f=29&t=22312

Finally I got reply from the server. The update did the trick

Very Very Very Thanks johan. :D :D :D :D :D :D