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