From f16c3ef6313f3134b1091347e8c0fe5ad33521c6 Mon Sep 17 00:00:00 2001 From: Grant Timmerman Date: Wed, 3 Apr 2019 14:41:39 -0700 Subject: [PATCH] refactor: Remove duplicate CORS header --- functions/http/index.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/functions/http/index.js b/functions/http/index.js index 2d957a48c8..30216b1755 100644 --- a/functions/http/index.js +++ b/functions/http/index.js @@ -253,8 +253,6 @@ exports.corsEnabledFunction = (req, res) => { res.set('Access-Control-Max-Age', '3600'); res.status(204).send(''); } else { - // Set CORS headers for the main request - res.set('Access-Control-Allow-Origin', '*'); res.send('Hello World!'); } };