Skip to content

Commit 10dbb7e

Browse files
fix(cors): allow GET requests instead of POST for API access
1 parent fec5dab commit 10dbb7e

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
@@ -13,7 +13,7 @@ declare global {
1313
app.use(
1414
cors({
1515
origin: ["https://keshav.is-a.dev"],
16-
allowMethods: ["POST"],
16+
allowMethods: ["GET"],
1717
}),
1818
);
1919
app.use(appendTrailingSlash());

0 commit comments

Comments
 (0)