Allow web manifest to be downloaded from assets
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing

This commit is contained in:
Garrett Mills 2020-10-21 14:31:48 -05:00
parent 78e3082139
commit b0b62cc50d
Signed by: garrettmills
GPG Key ID: D2BF5FBA8298F246

View File

@ -24,7 +24,7 @@ class IonicUnit extends Unit {
app.express.use('/i', [
this.canon.get('middleware::auth:UserOnly'),
(req, res, next) => {
const allowed_extensions = ['.html', '.js', '.css', '.svg', '.ttf', '.jpg', '.png', '.jpeg']
const allowed_extensions = ['.html', '.js', '.css', '.svg', '.ttf', '.jpg', '.png', '.jpeg', '.webmanifest']
for ( const k1 in allowed_extensions ) {
if ( req.path.endsWith(allowed_extensions[k1]) ) return next()
}