Skip to content

Commit

Permalink
fix(klesia): adjust cors settings of happy-dom
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcnk committed Sep 18, 2024
1 parent 2454579 commit 95b38e9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
Binary file modified bun.lockb
Binary file not shown.
9 changes: 8 additions & 1 deletion packages/connect/happy-dom.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
import { GlobalRegistrator } from "@happy-dom/global-registrator";
import { BrowserNavigationCrossOriginPolicyEnum } from "happy-dom";

GlobalRegistrator.register();
GlobalRegistrator.register({
settings: {
navigation: {
crossOriginPolicy: BrowserNavigationCrossOriginPolicyEnum.anyOrigin,
},
},
});
3 changes: 2 additions & 1 deletion packages/connect/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
"zod": "3.23.8"
},
"devDependencies": {
"@happy-dom/global-registrator": "14.12.3"
"@happy-dom/global-registrator": "15.7.4",
"happy-dom": "^15.7.4"
},
"peerDependencies": {
"typescript": "^5.0.0"
Expand Down

0 comments on commit 95b38e9

Please sign in to comment.