Rename accepted headers for metrics events (#641)

* Rename accepted headers for metrics events
This commit is contained in:
Esther Lozano 2020-02-18 11:14:06 +01:00 committed by GitHub
parent 90ee8af129
commit ac8086a8e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -7,9 +7,9 @@ module.exports = function cors (extraHeaders = []) {
'X-Prototype-Version',
'X-CSRF-Token',
'Authorization',
'Carto-Source-Lib',
'Carto-Source-Context',
'Carto-Source-Context-Id',
'Carto-Event',
'Carto-Event-Source',
'Carto-Event-Group-Id',
...extraHeaders
];

View File

@ -10,9 +10,9 @@ const accessControlHeaders = [
'X-Prototype-Version',
'X-CSRF-Token',
'Authorization',
'Carto-Source-Lib',
'Carto-Source-Context',
'Carto-Source-Context-Id'
'Carto-Event',
'Carto-Event-Source',
'Carto-Event-Group-Id'
].join(', ');
const exposedHeaders = [