diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 567e4b35..a8cb11b3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,7 +24,7 @@ jobs: strategy: fail-fast: false matrix: - os: [windows-latest, macos-14-large, ubuntu-latest] + os: [windows-latest, macos-13, ubuntu-latest] # create steps steps: diff --git a/packages/backend/src/vendor/SocketIO.ts b/packages/backend/src/vendor/SocketIO.ts index dddc782b..780ceae5 100644 --- a/packages/backend/src/vendor/SocketIO.ts +++ b/packages/backend/src/vendor/SocketIO.ts @@ -34,6 +34,10 @@ export default class SocketIO implements Vendor { }, }); + this.io.engine.on("headers", (headers) => { + headers["Access-Control-Allow-Private-Network"] = true; + }); + this.io.on("connection", () => {}); this.downloadService.on("download-ready-start", this.onDownloadReadyStart); diff --git a/packages/renderer/src/utils/socket.ts b/packages/renderer/src/utils/socket.ts index 8577d0de..700c5015 100644 --- a/packages/renderer/src/utils/socket.ts +++ b/packages/renderer/src/utils/socket.ts @@ -6,7 +6,11 @@ export function getSocket() { return _instance; } - _instance = io("http://localhost:8899"); + _instance = io("http://localhost:8899", { + extraHeaders: { + "Access-Control-Request-Private-Network": "true", + }, + }); return _instance; }