diff --git a/site/src/server.js b/site/src/server.js index b538db0ae2..7fdeb5756d 100644 --- a/site/src/server.js +++ b/site/src/server.js @@ -95,7 +95,7 @@ if (process.env.GITHUB_CLIENT_ID) { app.use( compression({ threshold: 0 }), serve('static', { - setHeaders(res, pathname) { + setHeaders(res) { res.setHeader('Access-Control-Allow-Origin', '*'); res.hasHeader('Cache-Control') || res.setHeader('Cache-Control', 'max-age=600'); // 10min default }