Skip to content

About

To help those who need to proxy Clash Royale API due to CORS

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

Introduction

To help those who need to proxy Clash of Clans API due to CORS

Usage

  • Install NodeJS, if necessary.
  • Go to (https://developer.clashroyale.com) and register for a developer account, if necessary.
  • Create a new token with an IP that matches your IP.
  • Save the generated token
  • Clone this repo and CD into the directory.
  • Run npm install to install dependencies.
  • Run CR_TOKEN={token from developer.clashroyale.com} npm start

By default, the proxy will run on port 8080. Use the CR_PORT env variable to change the port.

Now, all requests to localhost:8080 will proxy to (https://api.clashroyale.com/v1/) and will include the Authorization header and be CORS enabled.

WARNING

This app should be used to developer small demo apps utilizing the clash of clans API in the browser on your local machine only. Using the service in production will expose your developer token for open use by ANYBODY. This is for demostration and development purposes only.

About

To help those who need to proxy Clash Royale API due to CORS

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages