Commit 7ca4409
authored
analytics: allow tldraw.dev without www (tldraw#6978)
### Change type
- [ ] `bugfix`
- [ ] `improvement`
- [ ] `feature`
- [ ] `api`
- [x] `other`
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Adds `https://tldraw.dev` to CORS allowlists and mocks the consent
service in e2e tests for deterministic banner behavior.
>
> - **Workers/CORS**:
> - Allow exact origin `https://tldraw.dev` in
`apps/analytics-worker/src/worker.ts` and
`packages/worker-shared/src/origins.ts`.
> - **Tests**:
> - In `apps/dotcom/client/e2e/tests/cookie-consent.spec.ts`, mock
`https://consent.tldraw.xyz` to always return `{ requires_consent: true,
country_code: 'TEST' }` to ensure the banner displays during tests.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
b8b83c4. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent 03d244d commit 7ca4409
3 files changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
10 | 19 | | |
11 | 20 | | |
12 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
0 commit comments