a year ago
I'm getting a CORS error in my console when using the Railway dashboard.
Access to fetch at 'https://backboard.railway.app/graphql/internal?q=variables' from origin 'https://railway.app' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
Am I doing something wrong? I think of CORS as something to be set in your server config.
13 Replies
a year ago
are you trying to call Railway's API from your frontend?
No. Using Railway in the browser. Just a regular customer using the dashboard. Nothing fancy.
a year ago
oh interesting, is this still happening?
a year ago
what browser?
a year ago
have you tried clearing the web data for railway.app?
a year ago
fair enough, are you only getting this in the variables tab?
a year ago
are you able to copy the query?
a year ago
yeah
a year ago
I think I'm in the right spot
a year ago
{"query":"query environmentConfig($environmentId: String!, $decryptVariables: Boolean) {\n environment(id: $environmentId) {\n id\n config(decryptVariables: $decryptVariables)\n }\n environmentStagedChanges(environmentId: $environmentId) {\n status\n patch\n }\n}","variables":{"environmentId":"e771b62e-372c-4dd0-8f5f-e74a4f290f52","decryptVariables":true},"operationName":"environmentConfig"}
a year ago
It seems intermittent? (the 503s)
Attachments
a year ago
@Greg Schier 503's from the backboard, seems related to the new variable encryption stuff?
a year ago
It's definitely strange.
Attachments
a year ago
Side note: My home network (with lots of IOT devices) has been having some timeout issues, seeing 5xxs and CORS issues makes me think this is unrelated, just wanted to mention it since this is showing up as intermittent errors
a year ago
have you got any 503 errors from anything that doesn't have to do with variables?
a year ago
yes
Attachments
a year ago
Here's a 204 on Options and a 503 on Post
Attachments
a year ago
Envelope encryption has been live for a few weeks now, but @jr was doing some CORS-related stuff yesterday
a year ago
yeah I don't think it's that anymore, they are getting 503's through, so that doesn't seem like cors is the actual issue at hand?
a year ago
Ya, seems like an app error, as I only see it on their project
a year ago
Are people still seeing this issue?
I'm trying to reproduce but unable to (testing on a few browsers)
railway[bot]
a year ago
This thread has been marked as solved automatically due to a lack of recent activity. Please open a new thread if you require further assistance. Thank you!
Status changed to Solved railway[bot] • 12 months ago