mirror of
https://github.com/bitwarden/web
synced 2025-12-06 00:03:28 +00:00
fido app id
This commit is contained in:
13
gulpfile.js
13
gulpfile.js
@@ -325,7 +325,8 @@ gulp.task('dist:move', function () {
|
||||
paths.webroot + '**/images/**/*',
|
||||
paths.webroot + 'index.html',
|
||||
paths.webroot + 'u2f-connector.html',
|
||||
paths.webroot + 'favicon.ico'
|
||||
paths.webroot + 'favicon.ico',
|
||||
paths.webroot + 'app-id.fidou2f'
|
||||
],
|
||||
dest: paths.dist
|
||||
}
|
||||
@@ -440,6 +441,14 @@ gulp.task('deploy-preview', ['dist'], function () {
|
||||
gulp.task('serve', function () {
|
||||
connect.server({
|
||||
port: 4001,
|
||||
root: ['src']
|
||||
root: ['src'],
|
||||
middleware: function (connect, opt) {
|
||||
return [function (req, res, next) {
|
||||
if (req.originalUrl.indexOf('app-id.fidou2f') > -1) {
|
||||
res.setHeader('Content-Type', 'application/fido.trusted-apps+json');
|
||||
}
|
||||
next();
|
||||
}];
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user