diff --git a/webpack.dev.js b/webpack.dev.js index 78064bd08ebb1d50de8649a349581994d1138f70..2f561651b3e55cb1b53b488611712c19c01a804a 100644 --- a/webpack.dev.js +++ b/webpack.dev.js @@ -12,6 +12,17 @@ module.exports = merge(common, { https: { cert: fs.readFileSync("/home/ubuntu/fullchain.pem"), key: fs.readFileSync("/home/ubuntu/privkey.pem") + }, + before: function (app) { + // networked-aframe makes HEAD requests to the server for time syncing. Respond with an empty body. + app.head('\*', function (req, res, next) { + if (req.method === 'HEAD') { + res.send(''); + } + else { + next(); + } + }); } }, plugins: [new WriteFilePlugin()]