Skip to content

Commit cf1ac7a

Browse files
Merge pull request #3495 from opral/fix-cors
fix cors
2 parents 5876590 + 4b4d07e commit cf1ac7a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/cold-roses-eat.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@inlang/rpc": patch
3+
---
4+
5+
fix cors

inlang/packages/rpc/src/router.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const allowedOrigins =
1515
router.use(
1616
route,
1717
cors({
18-
origin: undefined,
18+
origin: allowedOrigins,
1919
methods: "GET,POST",
2020
credentials: true,
2121
optionsSuccessStatus: 204,

0 commit comments

Comments
 (0)