mirror of
https://github.com/coder/code-server.git
synced 2024-11-25 07:47:40 +03:00
Fix login page assets over proxy domain
This commit is contained in:
parent
37a72ce63b
commit
f2c326147d
@ -65,7 +65,7 @@ router.all(/.*/, async (req, res, next) => {
|
||||
const isAuthenticated = await authenticated(req)
|
||||
if (!isAuthenticated) {
|
||||
// Let the assets through since they're used on the login page.
|
||||
if (req.path.startsWith("/static/") && req.method === "GET") {
|
||||
if (req.path.startsWith("/_static/") && req.method === "GET") {
|
||||
return next()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user