-
Notifications
You must be signed in to change notification settings - Fork 396
how allow cors * in node? #1299
-
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
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 4 comments 2 replies
-
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
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1
-
ok, thanks. will fix.
Beta Was this translation helpful? Give feedback.
All reactions
-
Excuse me. I do not understand the explanation. Why cant i send gql request to localhosted docker image ? Getting a cors error. Thank you.
Beta Was this translation helpful? Give feedback.
All reactions
-
hm, so it is not cors here https://github.com/subquery/subql/blob/main/packages/query/src/yargs.ts
Beta Was this translation helpful? Give feedback.
All reactions
-
Beta Was this translation helpful? Give feedback.
All reactions
-
i get a cors error for localhost graphql request.
Beta Was this translation helpful? Give feedback.