From b32082a2b4d9f6822300588742bdfd88ec16e279 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mime=20=C4=8Cuvalo?= Date: Wed, 22 May 2024 09:51:34 +0100 Subject: [PATCH] touchscreen: allow meet.google.com origin (#3805) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit need to allow the origin for the new room creation ### Change Type - [x] `sdk` — Changes the tldraw SDK - [ ] `dotcom` — Changes the tldraw.com web app - [ ] `docs` — Changes to the documentation, examples, or templates. - [ ] `vs code` — Changes to the vscode plugin - [ ] `internal` — Does not affect user-facing stuff - [x] `bugfix` — Bug fix - [ ] `feature` — New feature - [ ] `improvement` — Improving existing features - [ ] `chore` — Updating dependencies, other boring stuff - [ ] `galaxy brain` — Architectural changes - [ ] `tests` — Changes to any test code - [ ] `tools` — Changes to infrastructure, CI, internal scripts, debugging tools, etc. - [ ] `dunno` — I don't know --- apps/dotcom-worker/src/lib/worker.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/dotcom-worker/src/lib/worker.ts b/apps/dotcom-worker/src/lib/worker.ts index f8fdf7ca0..663e20bf1 100644 --- a/apps/dotcom-worker/src/lib/worker.ts +++ b/apps/dotcom-worker/src/lib/worker.ts @@ -90,6 +90,7 @@ export function isAllowedOrigin(origin: string) { if (env.IS_LOCAL === 'true') return true if (origin === 'http://localhost:3000') return true if (origin === 'http://localhost:5420') return true + if (origin === 'https://meet.google.com') return true if (origin.endsWith('.tldraw.com')) return true if (origin.endsWith('-tldraw.vercel.app')) return true return false