mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-16 01:44:03 +03:00
This commit is contained in:
parent
2893fe7126
commit
1268ef63df
@ -248,7 +248,10 @@ const analyzeFetcher = (url, headers, analyzeApiChange) => {
|
|||||||
totalHeaders.forEach(t => {
|
totalHeaders.forEach(t => {
|
||||||
// If header has x-hasura-*
|
// If header has x-hasura-*
|
||||||
const lHead = t.toLowerCase();
|
const lHead = t.toLowerCase();
|
||||||
if (lHead.slice(0, 'x-hasura-'.length) === 'x-hasura-') {
|
if (
|
||||||
|
lHead.slice(0, 'x-hasura-'.length) === 'x-hasura-' &&
|
||||||
|
lHead !== 'x-hasura-access-key'
|
||||||
|
) {
|
||||||
user[lHead] = reqHeaders[t];
|
user[lHead] = reqHeaders[t];
|
||||||
delete reqHeaders[t];
|
delete reqHeaders[t];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user