Need to sign requests with Dg-Auth to make requests, but requests fail when querying local Docker Compose cluster. Dgraph Cloud works.
Access to fetch at 'http://localhost:8080/graphql' from origin 'http://localhost:3000' has been blocked by CORS policy: Request header field dg-auth is not allowed by Access-Control-Allow-Headers in preflight response.
Working around with:
if (PRODUCTION) {
authHeaders['Dg-Auth'] = SLASH_CLIENT_KEY;
}