Anhsirk
Posts: 2
Joined: Sat Oct 13, 2018 2:41 am

CORS Error

Sat Oct 13, 2018 3:07 am

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 137 times

User avatar
johan
GpsGate
Posts: 14552
Joined: Wed Aug 04, 2004 10:40 pm
Location: Sweden
Contact: Website

Re: CORS Error

Mon Oct 15, 2018 12:01 pm

Please update from beta.gpsgate.com to resolve this issue.

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

GpsGate Support

Anhsirk
Posts: 2
Joined: Sat Oct 13, 2018 2:41 am

Re: CORS Error

Mon Oct 15, 2018 2:37 pm

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

Return to “GpsGate for Developers”