From 9c7e3267ec1a3a40272e814df9d1dfe6e37e3144 Mon Sep 17 00:00:00 2001 From: juandjara Date: Thu, 12 Jan 2017 16:39:46 +0100 Subject: [PATCH] Revert "Update index.js" This reverts commit 04f5916f4c9ad996a63e56549b0850b45a016ca7. --- src/index.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/index.js b/src/index.js index 451a859..4a7e738 100644 --- a/src/index.js +++ b/src/index.js @@ -7,7 +7,6 @@ const { pushView } = require('./utils') module.exports = async function (req, res) { const { pathname, query } = url.parse(req.url, /* parseQueryString */ true) res.setHeader('Access-Control-Allow-Origin', '*') - res.setHeader("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept") // Send all views down if "?all" is true if (String(query.all) === 'true') { const data = {