Merge pull request #2267 from sveltejs/gh-2221

site: serve static assets with allow origin '*'
pull/2269/head
Rich Harris 7 years ago committed by GitHub
commit 621c13702d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save