This commit is contained in:
2025-06-26 04:42:51 +00:00
parent be418b1f32
commit 78212cc2a9
183 changed files with 41796 additions and 0 deletions

View File

@@ -121,7 +121,13 @@ function errorRequestHandler(error, _req, res, next) {
}
function isOriginAllowed(origin) {
console.log({ origin });
const url = new URL(origin);
if (url.hostname === "localhost" || url.hostname === "127.0.0.1") {
return true;
}
return url.hostname.endsWith("tomastm.com");
}