Unable to Create OAuth 2.0 Client ID with Railway App Domains in Google Cloud Console

foolyoghurt
HOBBY

18 days 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.app are being rejected and cannot be saved

  • Only domains with .up.railway.com suffix (e.g., https://xxx.up.railway.com) are accepted

  • Previous working state: In July, https://xxx.up.railway.app domains worked perfectly fine

  • Current issue scope: Even attempting to save existing configurations with .up.railway.app domains 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?

$10 Bounty

11 Replies

clashing
HOBBYTop 1% Contributor

18 days 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


Anonymous
PRO

17 days 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

clashing
HOBBYTop 1% Contributor

17 days 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

Anonymous
PRO

17 days 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

foolyoghurt
HOBBY

17 days ago

Agreed, I make some tool websites for myself. I don't want to apply a custom domain


suebphatt
FREE

16 days 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

Anonymous
PRO

16 days ago

I hope they fix it because not everyone wants to buy a domain


dom7kim
HOBBY

15 days ago

Same here :(


suebphatt
FREE

13 days 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

Anonymous
HOBBY

13 days ago

The railway redirect url work now without custom domain?


foolyoghurt
HOBBY

12 days ago

Nice, it just works now!