From 6f890dbe85cacf03c9ffef0eb896e907c9f2a73e Mon Sep 17 00:00:00 2001 From: Michael Shanks Date: Fri, 9 Oct 2020 17:14:02 +0100 Subject: [PATCH] :app to _app : bugfix --- packages/server/src/api/controllers/static.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/api/controllers/static.js b/packages/server/src/api/controllers/static.js index 018084f5de..19e17846af 100644 --- a/packages/server/src/api/controllers/static.js +++ b/packages/server/src/api/controllers/static.js @@ -153,7 +153,7 @@ exports.serveApp = async function(ctx) { // only set the appId cookie for /appId .. we COULD check for valid appIds // but would like to avoid that DB hit - const looksLikeAppId = /^app:[0-9a-f]{32}$/.test(appId) + const looksLikeAppId = /^app_[0-9a-f]{32}$/.test(appId) if (looksLikeAppId && !ctx.isAuthenticated) { const anonUser = { userId: "ANON",