CORS Policy problem with backboard.railway.app/graphql
rkm3
FREEOP

2 years 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

39 Replies

rkm3
FREEOP

2 years ago

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


2 years ago

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


rkm3
FREEOP

2 years ago

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


2 years ago

oh interesting, is this still happening?


rkm3
FREEOP

2 years ago

yes


rkm3
FREEOP

2 years ago

1230007458102251500


rkm3
FREEOP

2 years ago

This is from right now


2 years ago

what browser?


rkm3
FREEOP

2 years ago

In the variable settings pane



rkm3
FREEOP

2 years ago

Arc


rkm3
FREEOP

2 years ago

Also tested in Chrome


2 years ago

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


rkm3
FREEOP

2 years ago

Like clearning the cache?


rkm3
FREEOP

2 years ago

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


2 years ago

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


rkm3
FREEOP

2 years ago

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

1230008637208924200


rkm3
FREEOP

2 years ago

I think it's just the variables


2 years ago

are you able to copy the query?


rkm3
FREEOP

2 years ago

Seems like just variables.


rkm3
FREEOP

2 years ago

The graphql query?


2 years ago

yeah


ryanm
PRO

2 years ago

I think I'm in the right spot


ryanm
PRO

2 years 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

2 years ago

It seems intermittent? (the 503s)

Attachments


2 years ago

@Greg Schier 503's from the backboard, seems related to the new variable encryption stuff?


ryanm
PRO

2 years ago

It's definitely strange.


ryanm
PRO

2 years 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


2 years ago

have you got any 503 errors from anything that doesn't have to do with variables?


ryanm
PRO

2 years ago

yes

Attachments


ryanm
PRO

2 years ago

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


2 years ago

Very odd.


2 years ago

Envelope encryption has been live for a few weeks now, but @jr was doing some CORS-related stuff yesterday


2 years 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?


2 years ago

Ya, seems like an app error, as I only see it on their project


2 years ago

Are people still seeing this issue?

I'm trying to reproduce but unable to (testing on a few browsers)


2 years ago

I also was not able to reproduce fwiw.


2 years ago

marking as not reproducible


Railway
BOT

2 years 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 almost 2 years ago


Loading...