From 7584c33f2013c0c46a90abf4cda09b11f4a185e1 Mon Sep 17 00:00:00 2001 From: Michael Stegeman Date: Tue, 23 Oct 2018 12:57:43 -0600 Subject: [PATCH] Fix CORS issue with allowed headers. --- server.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/server.js b/server.js index 292ddbb..e1b27ba 100644 --- a/server.js +++ b/server.js @@ -135,7 +135,17 @@ app.use(function(req, res, next) { res.header('Access-Control-Allow-Origin', '*'); res.header( 'Access-Control-Allow-Headers', - 'Origin, X-Requested-With, Content-Type, Accept' + [ + 'Accept', + 'Accept-Language-STT', + 'Content-Type', + 'Origin', + 'Product-Tag', + 'Store-Sample', + 'Store-Transcription', + 'User-Agent', + 'X-Requested-With', + ].join(',') ); // Prevent browsers mistaking user provided content as HTML