Reputation: 325
I am unable to run query requests with my local dGraph server.
I am running
dGraph starts up fine, I have connected and run queries/mutations/etc through postman application, but when trying to run the exact same query through apollo it gives "Unable to fetch" error.
Any idea how I can configure either apollo or dGraph to accept CORS requests and ultimately run the query
Note - downloaded and ran the queries through apollo using the browser extension for allowing CORS requests and the UI then runs fine - pointing at the issue being something to do with the CORS configuration
Upvotes: 0
Views: 221
Reputation: 325
After a lot of searching, I found that wildcards in the cors configuration on dgraph does not work. It must specify the full url. After specifying http://localhost:3000 then Cors started working
Upvotes: -1