apps/api: manual headers for fetching from graphql

This commit is contained in:
vchikalkin 2024-02-18 17:40:36 +03:00
parent ef88c12e74
commit acdacbf18e

View File

@ -26,7 +26,11 @@ export class ProxyController {
const response = await fetch(env.URL_CRM_GRAPHQL_DIRECT, {
body: JSON.stringify({ operationName, query, variables }),
headers: req.headers as HeadersInit,
headers: {
Authorization: req.headers.authorization,
'Content-Type': 'application/json',
Cookie: req.headers.cookie,
},
method: req.method,
});