This commit is contained in:
Schluffe
2026-09-27 14:09:50 +02:00
parent 9758ae6dad
commit a647cd5184
3 changed files with 46 additions and 6 deletions
+1 -3
View File
@@ -1,7 +1,5 @@
import { STATUS_CODE, STATUS_TEXT, type StatusCode } from "jsr:@std/http";
const ALLOWED_ORIGIN = "http://0.0.0.0:8042";
type Session = {
id: string;
connId: number;
@@ -68,7 +66,7 @@ export default function (request: Request): Response {
const url = new URL(request.url);
const sessionId = url.searchParams.get("sessionId");
if (url.origin !== ALLOWED_ORIGIN || sessionId === null) {
if (sessionId === null) {
return createResponse(STATUS_CODE.BadRequest);
}