We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6aebd25 + 9c7e326 commit 5ea0c93Copy full SHA for 5ea0c93
src/index.js
@@ -6,6 +6,7 @@ const { pushView } = require('./utils')
6
7
module.exports = async function (req, res) {
8
const { pathname, query } = url.parse(req.url, /* parseQueryString */ true)
9
+ res.setHeader('Access-Control-Allow-Origin', '*')
10
// Send all views down if "?all" is true
11
if (String(query.all) === 'true') {
12
const data = {
0 commit comments