seripap / vainglory

(*DEPRECATED*: The API no longer exists, so this will no longer work) A Javascript API Client wrapper for Vainglory
MIT License
29 stars 7 forks source link

CORS Error #3

Closed hineltjar closed 7 years ago

hineltjar commented 7 years ago

When running with localhost:3000, the following error appears. How can I fix with it?

XMLHttpRequest cannot load https://api.dc01.gamelockerapp.com/shards/ea/players?filter[playerName]=xxxx. Request header field content-encoding is not allowed by Access-Control-Allow-Headers in preflight response.
seripap commented 7 years ago

This client is not meant to be ran in the browser, you'd want to proxy your own requests through it using something like express or standard http modules

hineltjar commented 7 years ago

I understood. Thank you for the answer.