backing off protecting assets

- breaks too many things.
This commit is contained in:
Paul Rodwell 2023-08-21 16:54:55 +01:00
parent 3305674597
commit 5137dd86ac
No known key found for this signature in database
GPG Key ID: 083BA337597C49E6
1 changed files with 2 additions and 2 deletions

View File

@ -400,9 +400,9 @@ module.exports = exports = (log, loga, argv) ->
false
app.all '*', (req, res, next) ->
# everything is restricted except site flag,
# don't protect site flag,
return next() if req.url is '/favicon.png'
return next() unless /\.(json|html)$/.test req.url or req.url.startsWith('/assets')
return next() unless /\.(json|html)$/.test req.url
# prepare to examine remote server's forwarded session
res.header 'Access-Control-Allow-Origin', req.get('Origin')||'*'