4 months ago
"Hi everyone,
I'm encountering a "Bad Request 400" error when trying to access my website, avexclusiveauto.com. I've deployed my website on Railway, and they provided me with a domain for my custom domain.
I've connected this Railway domain to Cloudflare (cloudflare.com) for DNS management. Cloudflare indicates that the domain propagation was successful but despite the successful connection at the DNS level, I'm still getting the "Bad Request 400" error when I try to visit my website. Cloudflare told me that This may be related to the domain hosting on Railway itself.
Has anyone else experienced a similar issue or have any insights into what could be causing this "Bad Request 400" error in this setup (Railway + Cloudflare)? Any suggestions on how to troubleshoot this further would be greatly appreciated.
4 Replies
4 months ago
Hello,
This is an issue at the application level, not with Railway or Cloudflare.
If I had to guess, you have not added your custom domain to your allowed hosts or your trusted origins, or both.
Best,
Brody
Status changed to Awaiting User Response railway[bot] • 4 months ago
4 months ago
Thank you all. I solved this issue already. The problem was, just in case some else got the same issue, I'm using django and django has two keywords allow_hosting and trusted_csfr which I didn't updated right with my custom domain.
Status changed to Awaiting Railway Response railway[bot] • 4 months ago
brody
Hello,This is an issue at the application level, not with Railway or Cloudflare.If I had to guess, you have not added your custom domain to your allowed hosts or your trusted origins, or both.Best,Brody
4 months ago
Thank you Brody that was the real issue you point me to the right direction
Status changed to Awaiting User Response railway[bot] • 4 months ago
Status changed to Solved brody • 4 months ago