Allow metrics custom headers in cors

This commit is contained in:
Esther Lozano
2020-02-13 12:52:20 +01:00
parent 576518b2c8
commit 98325495ea
6 changed files with 16 additions and 7 deletions
+4 -1
View File
@@ -6,7 +6,10 @@ module.exports = function cors () {
'X-Requested-With',
'X-Prototype-Version',
'X-CSRF-Token',
'Authorization'
'Authorization',
'Carto-Source-Lib',
'Carto-Source-Context',
'Carto-Source-Context-Id'
];
if (req.method === 'OPTIONS') {