5 months ago
I suddenly started getting cors errors on my application with no changes, I added cors parameters but that didnt help
Pinned Solution
5 months ago
Best way to solve this will be by adding a custom subdomain for your app
Custom 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.cain your backend code
This should resolve your CORS issues once DNS propagates.
5 Replies
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!
5 months ago
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?
5 months ago
This is the api "web-production-6efb1.up.railway.app" I am calling it from "https://gameonfc.ca/"
5 months ago
Best way to solve this will be by adding a custom subdomain for your app
Custom 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.cain 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.
5 months ago
SOLID!!!! Thanks a bunch
Status changed to Solved jake • 6 months ago