diff --git a/bun.lockb b/bun.lockb index e7e01ce..482f0ea 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/packages/connect/happy-dom.ts b/packages/connect/happy-dom.ts index 7f712d0..224f313 100644 --- a/packages/connect/happy-dom.ts +++ b/packages/connect/happy-dom.ts @@ -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, + }, + }, +}); diff --git a/packages/connect/package.json b/packages/connect/package.json index 5f32dbf..9dfd9a0 100644 --- a/packages/connect/package.json +++ b/packages/connect/package.json @@ -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"