7 months ago
I'm experiencing difficulties when configuring OAuth 2.0 Client ID in Google Cloud Console. Specifically, I cannot add Railway app domains with the .up.railway.app suffix to the "Authorized JavaScript origins" field.
Details:
Current behavior: Domains like
https://xxx.up.railway.appare being rejected and cannot be savedOnly domains with
.up.railway.comsuffix (e.g.,https://xxx.up.railway.com) are acceptedPrevious working state: In July,
https://xxx.up.railway.appdomains worked perfectly fineCurrent issue scope: Even attempting to save existing configurations with
.up.railway.appdomains results in validation errors
Expected behavior: Railway app domains with .up.railway.app suffix should be accepted as valid Authorized JavaScript origins, as they were previously.
Additional context: This appears to be a recent change, as the same configuration worked without issues a few months ago. The problem seems to affect all domains ending with .up.railway.app.
Has anyone encountered this issue recently? Any suggestions on how to resolve this or if there have been recent policy changes regarding Railway domains in Google Cloud OAuth configuration?
11 Replies
7 months ago
The best way to get over this is to use custom-domain which would bypass this limitation.
Docs: https://docs.railway.com/guides/public-networking#custom-domains
My post on how to set-up one for your Railway deployment: https://station.railway.com/questions/dns-configuration-issue-for-custom-domai-10696e8a#fcrf
7 months ago
I'm having the same problem right now, I can't put my redirect URL in console google cloud
I'm having the same problem right now, I can't put my redirect URL in console google cloud
7 months ago
Custom domains is the thing to be used in this case, as mentioned previously
clashing
Custom domains is the thing to be used in this case, as mentioned previously
7 months ago
Yeah but that's just a temporary solution and it's a hassle they need to fix it in the core
Yeah but that's just a temporary solution and it's a hassle they need to fix it in the core
7 months ago
Agreed, I make some tool websites for myself. I don't want to apply a custom domain
7 months ago
ah, so this just happened out of nowhere in the day that I am making a video to teach my students 
suebphatt
ah, so this just happened out of nowhere in the day that I am making a video to teach my students
7 months ago
I hope they fix it because not everyone wants to buy a domain
7 months ago
Same here :(
7 months ago
ok so turned out that it started to work today. no idea why, but hey, good enough
suebphatt
ok so turned out that it started to work today. no idea why, but hey, good enough
7 months ago
The railway redirect url work now without custom domain?
7 months ago
Nice, it just works now!
