speedruncomorg / api

REST API Documentation for speedrun.com
346 stars 36 forks source link

CORS header not always returned #92

Open HHMagnus opened 5 years ago

HHMagnus commented 5 years ago

This issue only happens occasionally. Approx. every 10th time I request something When fetching, the 'Access-Control-Allow-Origin' header is not present on the response.

Chrome will return an error that looks like this: Access to fetch at 'https://www.speedrun.com/api/v1/leaderboards/v1pgmm18/category/9d8jo6qk?var-789k4p0l=klr5o5m1&var-wl3xg6l1=5lenyvml&embed=players' from origin 'http://localhost:8080' 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.

CryZe commented 4 years ago

I'm now not seeing any CORS Headers anymore at all. It seems to be entirely gone. This means you can't use the speedrun.com API at all from anything other than local clients anymore.