TrackerNetwork / TRN.Developers

Information and Issue Tracker for the Tracker Network API.
https://tracker.gg/developers
24 stars 5 forks source link

Can't access created application api key #13

Closed m0ter closed 4 years ago

m0ter commented 4 years ago

If i create a application @ https://tracker.gg/developers/apps i can see the applications i have created.

When i try to access one i see the form for creating a new one.

Console errors.

Access to fetch at 'https://api.tracker.gg/api/v1/developers/apps/APP_ID' from origin 'https://tracker.gg' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
Farid212 commented 4 years ago

same here

var settings = {
            "url": "https://api.fortnitetracker.com/v1/profile/kbm/Yuno",
            "headers": {
                "TRN-Api-Key": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
                "Access-Control-Allow-Origin": "*"
            }
        }

        $.ajax(settings).done(function (response) {
            console.log(response);
        });

return

Access to XMLHttpRequest at 'https://api.fortnitetracker.com/v1/profile/kbm/Yuno' from origin 'null' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
bladefist commented 4 years ago

@M0ter is your issue resolved?

bladefist commented 4 years ago

@Farid212 we don't support CORs at this time, you need to use a backend like nodejs or c#.

Farid212 commented 4 years ago

@bladefist Thank you for the information.