|
|
@ -8,6 +8,12 @@ const app = express(); |
|
|
const server = http.createServer(app); |
|
|
const server = http.createServer(app); |
|
|
const io = new Server(server); |
|
|
const io = new Server(server); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app.use((req, res, next) => { |
|
|
|
|
|
res.setHeader('Permissions-Policy', 'camera=(), microphone=(), geolocation=()'); |
|
|
|
|
|
next(); |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
// Serve models with correct MIME type
|
|
|
// Serve models with correct MIME type
|
|
|
app.use('/models', express.static(path.join(__dirname, 'models'), { |
|
|
app.use('/models', express.static(path.join(__dirname, 'models'), { |
|
|
setHeaders: (res, filePath) => { |
|
|
setHeaders: (res, filePath) => { |
|
|
|