Rename accepted headers for metrics events (#641)
* Rename accepted headers for metrics events
This commit is contained in:
parent
90ee8af129
commit
ac8086a8e3
@ -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
|
||||
];
|
||||
|
||||
|
@ -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 = [
|
||||
|
Loading…
Reference in New Issue
Block a user