From 128bbbdda3f81113746aaf3f5195a58b669c09ac Mon Sep 17 00:00:00 2001 From: Makoto Inoue <2630+makoto@users.noreply.github.com> Date: Fri, 1 Dec 2023 17:28:28 +0000 Subject: [PATCH] Revert "Add preflight" This reverts commit b43c13947bd8af2f0821c694f8eba0248a7bbd2d. --- arb-gateway/src/worker.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arb-gateway/src/worker.ts b/arb-gateway/src/worker.ts index 6707291c..599e7dc0 100644 --- a/arb-gateway/src/worker.ts +++ b/arb-gateway/src/worker.ts @@ -8,7 +8,7 @@ interface Env { L2_ROLLUP: string; } -const {corsify, preflight} = createCors() +const {corsify} = createCors() let app: Router; async function fetch(request: Request, env: Env) { // Loading libraries dynamically as a temp work around. @@ -33,7 +33,6 @@ async function fetch(request: Request, env: Env) { const server = new Server(); gateway.add(server); app = server.makeApp('/'); - app.all('*', preflight); } return app.handle(request).then(corsify); }