This commit is contained in:
Debian
2026-03-30 16:36:59 +00:00
parent e4506815ef
commit 31df5a4aa0
3 changed files with 24 additions and 1 deletions
+1
View File
@@ -43,6 +43,7 @@ export const assertAllowedOrigin = (request: Request): void => {
return;
}
console.log(config.appOrigins, origin)
if (!config.appOrigins.includes(origin.toLowerCase())) {
throw new HttpError(403, "Origin is not allowed.");
}