DestinyItemManager / dim-api

Destiny Item Manager API Service

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Impossible to use non-localhost addresses for dev server

paulv opened this issue · comments

When you get to the DIM api key part of the initial setup, if your server is remote, you get an error that says "Could not register app: InvalidRequest - Can only register apps for localhost or 127.0.0.1, your host was [your server]".

In addition to the obvious limitations, this makes it impossible to do development on a Chromebook. The linux vm that you can start is only accessible to the main chrome instance via 100.115.92.197.

(to anyone who finds this later: you also need to run yarn start with --host 0.0.0.0 --disable-host-check)

Thanks for the report - I haven’t tried that.

I’d be happy to accept a PR to the dim-api repo that expands this check to allow private IP ranges.