Results 1 to 4 of 4

Thread: Api key

  1. #1
    Fresh Spawn
    Join Date
    Apr 2015
    Posts
    2

    Api key

    I am new to here, I noticed that api key is limiting the ip addresses, does it mean I cant release my project website using this key to public since everyone is using different ip addresses ? Or how can i solve this problem ?

  2. #2
    Centennial Club
    Join Date
    Feb 2016
    Posts
    192
    Hi!

    Indeed SC doesn’t want the API keys to be used client side. So the solution is to setup your own small server that would proxy the request to SC API.
    Basically it would go:
    Client > Your API proxy > SC API

    This is how clash of stats works for example

  3. #3
    Fresh Spawn
    Join Date
    Apr 2015
    Posts
    2
    Thanks for replying. If you dont mind, can u also tell me how can I set up local web server ? Like by using nodejs ?

  4. #4
    Centennial Club
    Join Date
    Feb 2016
    Posts
    192
    Yes you can use NodeJS for that . There are quite a few tutorial to get started with Node online .

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •