Skip to content

Commit 368c8f9

Browse files
fix(cors): apply middleware to all routes to ensure CORS headers are set globally
1 parent 10dbb7e commit 368c8f9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ declare global {
1010
var tursoClient: Client | undefined;
1111
}
1212

13-
app.use(
13+
app.use("*",
1414
cors({
1515
origin: ["https://keshav.is-a.dev"],
1616
allowMethods: ["GET"],

0 commit comments

Comments
 (0)