Colorfulstan / LeagueJS

A Javascript Wrapper for the League of Legends API
MIT License
99 stars 7 forks source link

CORS isssue #24

Closed RazvanCretu closed 4 years ago

RazvanCretu commented 4 years ago

Hi there,

Is there any solution or an example on how to bypass CORS issues with this package?

I'm developing a personal site where I would like to display riot stats within a page. I'm using NextJS for the frontend and Strapi for the backend.

Colorfulstan commented 4 years ago

The Solution is to use it in the backend code, securing your API key properly through it and not running into cors issues.