Skip to content

Commit 635b163

Browse files
committed
Just when you think you understand how CORS works...
1 parent 023fa4f commit 635b163

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/worker/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const app = new Hono<{ Bindings: Env }>();
3838
app.use("/api/*", (c, next) => {
3939
return cors({
4040
origin: c.env.LZ_ALLOWED_ORIGINS,
41-
allowHeaders: ['Authorization','X-LZ-AppVersion'],
41+
allowHeaders: [],
4242
allowMethods: ['GET', 'HEAD', 'POST', 'PUT', 'DELETE', 'OPTIONS'],
4343

4444
/* CORS-safelisted response headers:

0 commit comments

Comments
 (0)