apps/api: manual headers for fetching from graphql
This commit is contained in:
parent
ef88c12e74
commit
acdacbf18e
@ -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,
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user