From cd5775a084340e0c94dd01d49dc84dcca0c0e73d Mon Sep 17 00:00:00 2001 From: platfowner Date: Tue, 7 May 2024 14:44:39 +0900 Subject: [PATCH] Change a todo to a note --- client/middleware.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/middleware.js b/client/middleware.js index 2f9fcccf7..9a9402338 100644 --- a/client/middleware.js +++ b/client/middleware.js @@ -37,7 +37,7 @@ class Middleware { }); } - // TODO(platfowner): Use dynamic origin (see https://www.npmjs.com/package/cors). + // NOTE(platfowner): For performance reasons, we do not support dynamic origin (see https://www.npmjs.com/package/cors). corsLimiter() { return cors({ origin: NodeConfigs.CORS_WHITELIST === '*' ? NodeConfigs.CORS_WHITELIST : CommonUtil.getRegexpList(NodeConfigs.CORS_WHITELIST) });