site: serve static assets with allow origin '*' (#2221)

pull/2267/head
Conduitry 6 years ago
parent 3e2366d360
commit 149c33b69e

@ -94,7 +94,7 @@ if (process.env.GITHUB_CLIENT_ID) {
app.use(
compression({ threshold: 0 }),
serve('static'),
serve('static', { setHeaders: res => res.setHeader('Access-Control-Allow-Origin', '*') }),
sapper.middleware({
// TODO update Sapper so that we can pass props to the client
props: req => {

Loading…
Cancel
Save