ajanata / PretendYoureXyzzy

A web clone of the card game Cards Against Humanity.
https://pretendyoure.xyz/zy
BSD 2-Clause "Simplified" License
1.22k stars 397 forks source link

Configuring admin access on personal server #165

Closed majmongoose closed 6 years ago

majmongoose commented 6 years ago

I started a new server for my friends to use, but I am getting an error when I try to connect to the admin panel or do anything as an admin.

HTTP Status 403 - Access is restricted to known hosts

How do I add myself to the list of known hosts?

ajanata commented 6 years ago

Add your IP address to https://github.com/ajanata/PretendYoureXyzzy/blob/master/src/main/java/net/socialgamer/cah/Constants.java#L52 (and probably remove mine). I'm thinking about moving this out to the configuration file so it's easier to find, assuming that doesn't cause a chain reaction of changes that takes more than a few minutes to do.