-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Google API seemingly not working to display map #561
Comments
The issue is not with the MAP API Key its with your Other API Key you need to authorize the URL as its in the console exactly https://airclub.yangri.re would be yours. also to add you need 2 different API keys i tested with both unrestricted and no security set if i share "Maps" API i get your error if not it works if i have 2 different api keys with security or not Had the same issue with my API |
So what's the fix? I'm having the same issue right now and I'm confused why I need 2 API keys as well and what that process is like. I have 1 API with maps enabled as well but I don't know if I just put that key in both places or if I need another key. |
If you can find the API key baked into the repo code or the database , then you can replace it with your API key and see if its working |
I've been trying to run my own "instance" of Airline Club on a personal server and managed to get apparently everything running, except for the Google API.
Basically whenever I log into the game I get this:
In my application.conf file I've set up those:
[API Key 1 and Maps API Key are values that I've obfuscated for obvious reasons]
What I found strange is that the error in the javascript console isn't very telling:
The problem I see is that it's telling me that the referer is not allowed, but I have tried both unrestricted and restricting with different combination of FQDN/URL with no success (airclub.yangi.re / https://airclub.yangi.re / https://airclub.yangi.re/*)
One additional question might be, what's the difference between the "mapKey" and the "apiKey", I can't find any clue about which one does what (does both need to be different at all?)
Here is how the "Maps API Key" is set up for instance:
For additional context, the URL I'm using can access the internet but only some restricted IPs can access it (in case you wonder why it's not accessible).
The text was updated successfully, but these errors were encountered: