CORS Policy problem with backboard.railway.app/graphql

rkm3
FREE

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.

Solved

13 Replies

rkm3
FREE

a year ago

5d77fb37-1fba-4a55-bbd3-e0fab8243723


a year ago

are you trying to call Railway's API from your frontend?


rkm3
FREE

a year ago

No. Using Railway in the browser. Just a regular customer using the dashboard. Nothing fancy.


a year ago

oh interesting, is this still happening?


rkm3
FREE

a year ago

yes


rkm3
FREE

a year ago

1230007458102251500


rkm3
FREE

a year ago

This is from right now


a year ago

what browser?


rkm3
FREE

a year ago

In the variable settings pane



rkm3
FREE

a year ago

Arc


rkm3
FREE

a year ago

Also tested in Chrome


a year ago

have you tried clearing the web data for railway.app?


rkm3
FREE

a year ago

Like clearning the cache?


rkm3
FREE

a year ago

I haven't used Chrome in months, just opened it for this


a year ago

fair enough, are you only getting this in the variables tab?


rkm3
FREE

a year ago

Here's Safari which I never use (first Railway login)

1230008637208924200


rkm3
FREE

a year ago

I think it's just the variables


a year ago

are you able to copy the query?


rkm3
FREE

a year ago

Seems like just variables.


rkm3
FREE

a year ago

The graphql query?


a year ago

yeah


ryanm
PRO

a year ago

I think I'm in the right spot


ryanm
PRO

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"}


ryanm
PRO

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?


ryanm
PRO

a year ago

It's definitely strange.


ryanm
PRO

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?


ryanm
PRO

a year ago

yes

Attachments


ryanm
PRO

a year ago

Here's a 204 on Options and a 503 on Post


a year ago

Very odd.


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)


a year ago

I also was not able to reproduce fwiw.


a year ago

marking as not reproducible


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] about 1 year ago