Skip to content

Commit 95b38e9

Browse files
committed
fix(klesia): adjust cors settings of happy-dom
1 parent 2454579 commit 95b38e9

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

bun.lockb

32 Bytes
Binary file not shown.

packages/connect/happy-dom.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
11
import { GlobalRegistrator } from "@happy-dom/global-registrator";
2+
import { BrowserNavigationCrossOriginPolicyEnum } from "happy-dom";
23

3-
GlobalRegistrator.register();
4+
GlobalRegistrator.register({
5+
settings: {
6+
navigation: {
7+
crossOriginPolicy: BrowserNavigationCrossOriginPolicyEnum.anyOrigin,
8+
},
9+
},
10+
});

packages/connect/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
"zod": "3.23.8"
3030
},
3131
"devDependencies": {
32-
"@happy-dom/global-registrator": "14.12.3"
32+
"@happy-dom/global-registrator": "15.7.4",
33+
"happy-dom": "^15.7.4"
3334
},
3435
"peerDependencies": {
3536
"typescript": "^5.0.0"

0 commit comments

Comments
 (0)