Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

how allow cors * in node? #1299

Unanswered
dzmitry-lahoda asked this question in Q&A
Discussion options

when I start node, what parameter or env var to pass into subql node to make it accept requests from any origin domain?

need to access subql running in codespace

You must be logged in to vote

Replies: 4 comments 2 replies

Comment options

Hi @dzmitry-lahoda, cors is only enabled for the query service. The node should not be made public so making requests shouldn't require cors

You must be logged in to vote
2 replies
Comment options

ok, thanks. will fix.

Comment options

Excuse me. I do not understand the explanation. Why cant i send gql request to localhosted docker image ? Getting a cors error. Thank you.

Comment options

You must be logged in to vote
0 replies
Comment options

oh it may be default
You must be logged in to vote
0 replies
Comment options

i get a cors error for localhost graphql request.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /