graphprotocol / graph-node

Graph Node indexes data from blockchains such as Ethereum and serves it over GraphQL
https://thegraph.com
Apache License 2.0
2.86k stars 945 forks source link

Cors error #3528

Open Nightfuury opened 2 years ago

Nightfuury commented 2 years ago

While connecting to the deployed subgraph from frontend, I am getting following error.

The Same Origin Policy disallows reading the remote resource at http://172.**.**.70:8000/subgraphs/name/harmony-swap/subgraph. (Reason: CORS request did not succeed). Status code: (null).

How cam I add cors to my server ?

digitalsimboja commented 1 year ago

Did you manage to solve this. I am getting similar errors from frontend

gwumex commented 1 year ago

Has anyone been able to solve this?

omryozgrappa commented 3 months ago

any updates?