Skip to content

Commit

Permalink
Revert "Add preflight"
Browse files Browse the repository at this point in the history
This reverts commit b43c139.
  • Loading branch information
makoto committed Dec 1, 2023
1 parent b43c139 commit 128bbbd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arb-gateway/src/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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);
}
Expand Down

0 comments on commit 128bbbd

Please sign in to comment.