R
Railway8mo ago
Ryan!

CORS Policy problem with backboard.railway.app/graphql

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.
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.
Solution:
New reply sent from Help Station thread:
marking as not reproducible
You're seeing this because this thread has been automatically linked to the Help Station thread....
Jump to solution
30 Replies
Percy
Percy8mo ago
Project ID: 5d77fb37-1fba-4a55-bbd3-e0fab8243723
Ryan!
Ryan!OP8mo ago
5d77fb37-1fba-4a55-bbd3-e0fab8243723
Brody
Brody8mo ago
are you trying to call Railway's API from your frontend?
Ryan!
Ryan!OP8mo ago
No. Using Railway in the browser. Just a regular customer using the dashboard. Nothing fancy.
Brody
Brody8mo ago
oh interesting, is this still happening?
Ryan!
Ryan!OP8mo ago
yes
Ryan!
Ryan!OP8mo ago
No description
Ryan!
Ryan!OP8mo ago
This is from right now
Brody
Brody8mo ago
what browser?
Ryan!
Ryan!OP8mo ago
In the variable settings pane
Ryan!
Ryan!OP8mo ago
Railway
Railway
Railway is an infrastructure platform where you can provision infrastructure, develop with that infrastructure locally, and then deploy to the cloud.
Ryan!
Ryan!OP8mo ago
Arc Also tested in Chrome
Brody
Brody8mo ago
have you tried clearing the web data for railway.app?
Ryan!
Ryan!OP8mo ago
Like clearning the cache? I haven't used Chrome in months, just opened it for this
Brody
Brody8mo ago
fair enough, are you only getting this in the variables tab?
Ryan!
Ryan!OP8mo ago
Here's Safari which I never use (first Railway login)
No description
Ryan!
Ryan!OP8mo ago
I think it's just the variables
Brody
Brody8mo ago
are you able to copy the query?
Ryan!
Ryan!OP8mo ago
Seems like just variables. The graphql query?
Brody
Brody8mo ago
yeah !t
Duchess
Duchess8mo ago
New reply sent from Help Station thread:
This thread has been escalated to the Railway team.
You're seeing this because this thread has been automatically linked to the Help Station thread.
Brody
Brody8mo ago
^ please log in
Duchess
Duchess8mo ago
New reply sent from Help Station thread:
I think I'm in the right spot
You're seeing this because this thread has been automatically linked to the Help Station thread. New reply sent from Help Station thread:
{"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"}
{"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"}
You're seeing this because this thread has been automatically linked to the Help Station thread. New reply sent from Help Station thread:
It seems intermittent? (the 503s)
You're seeing this because this thread has been automatically linked to the Help Station thread.
Brody
Brody8mo ago
@Greg Schier 503's from the backboard, seems related to the new variable encryption stuff?
Duchess
Duchess8mo ago
New reply sent from Help Station thread:
It's definitely strange.
You're seeing this because this thread has been automatically linked to the Help Station thread. New reply sent from Help Station thread:
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
You're seeing this because this thread has been automatically linked to the Help Station thread. New reply sent from Help Station thread:
have you got any 503 errors from anything that doesn't have to do with variables?
You're seeing this because this thread has been automatically linked to the Help Station thread. New reply sent from Help Station thread:
yes
You're seeing this because this thread has been automatically linked to the Help Station thread. New reply sent from Help Station thread:
Here's a 204 on Options and a 503 on Post
You're seeing this because this thread has been automatically linked to the Help Station thread. New reply sent from Help Station thread:
Very odd.
You're seeing this because this thread has been automatically linked to the Help Station thread.
Greg Schier
Greg Schier8mo ago
Envelope encryption has been live for a few weeks now, but @jr was doing some CORS-related stuff yesterday
Brody
Brody8mo 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?
Greg Schier
Greg Schier8mo ago
Ya, seems like an app error, as I only see it on their project. Taking a look
Duchess
Duchess8mo ago
New reply sent from Help Station thread:
Are people still seeing this issue? I'm trying to reproduce but unable to (testing on a few browsers)
You're seeing this because this thread has been automatically linked to the Help Station thread. New reply sent from Help Station thread:
I also was not able to reproduce fwiw.
You're seeing this because this thread has been automatically linked to the Help Station thread.
Solution
Duchess
Duchess8mo ago
New reply sent from Help Station thread:
marking as not reproducible
You're seeing this because this thread has been automatically linked to the Help Station thread.
Want results from more Discord servers?
Add your server