CORS Issues
thisziggy
HOBBYOP

5 months ago

I suddenly started getting cors errors on my application with no changes, I added cors parameters but that didnt help

Solved$10 Bounty

Pinned Solution

Best way to solve this will be by adding a custom subdomain for your app

Custom Domain Solution:

  1. Add subdomain in Railway: Go to Settings → Networking → Add api.gameonfc.ca

  2. Update DNS: Add CNAME record pointing api → your Railway app

  3. Update CORS: Allow origin https://gameonfc.ca in your backend code

This should resolve your CORS issues once DNS propagates.

5 Replies

Railway
BOT

5 months ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


Please provide some more context. Which url you are getting CORS issues? Is it any external api end points or internal?


dostogircse171

Please provide some more context. Which url you are getting CORS issues? Is it any external api end points or internal?

thisziggy
HOBBYOP

5 months ago

This is the api "web-production-6efb1.up.railway.app" I am calling it from "https://gameonfc.ca/"


Best way to solve this will be by adding a custom subdomain for your app

Custom Domain Solution:

  1. Add subdomain in Railway: Go to Settings → Networking → Add api.gameonfc.ca

  2. Update DNS: Add CNAME record pointing api → your Railway app

  3. Update CORS: Allow origin https://gameonfc.ca in your backend code

This should resolve your CORS issues once DNS propagates.


dostogircse171

Best way to solve this will be by adding a custom subdomain for your appCustom Domain Solution:Add subdomain in Railway: Go to Settings → Networking → Add api.gameonfc.caUpdate DNS: Add CNAME record pointing api → your Railway appUpdate CORS: Allow origin https://gameonfc.ca in your backend codeThis should resolve your CORS issues once DNS propagates.

thisziggy
HOBBYOP

5 months ago

SOLID!!!! Thanks a bunch


Status changed to Solved jake 5 months ago


Loading...