Skip to content

docs(embed): an empty allowed-domains list allows the embed report too - #241

Merged
Ardnived merged 1 commit into
mainfrom
docs/report-empty-allowlist
Oct 1, 2026
Merged

Ardnived merged 1 commit into
mainfrom
docs/report-empty-allowlist

Conversation

@Ardnived

@Ardnived Ardnived commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

Summary

  • The embed guide's troubleshooting table and the embed-announce.ts comment said an empty allowed-domains list refuses the embed report. It allows every origin, as the read endpoints do.

Contract impact

docs/embedding.md only — a wrong statement corrected, no behaviour change. The WordPress plugin carried the same claim and fixed it in sydevs/SahajAtlasWordpress#51.

Test results

  • Lean gate: ✓ lint on the touched file; comment and markdown only
  • Build: N/A

Notes for reviewer

Evidence: SahajCloud origin/main — src/collections/Clients/endpoints/report.ts:156 checks the reported host only when the list is non-empty; src/plugins/usage/hooks.ts:341 returns early for an empty list. SahajCloud's own test tests/int/client-canonical.int.spec.ts:562 stores a report from a client with no list.

🤖 Generated with Claude Code

The guide's troubleshooting table and the embed-report comment said an
empty `allowedDomains` refuses `clients/report`. SahajCloud allows every
origin for an empty list there as on the read endpoints
(`src/collections/Clients/endpoints/report.ts:156`,
`src/plugins/usage/hooks.ts:341` on main). The WordPress plugin repeated
the claim and corrected it in sydevs/SahajAtlasWordpress#51.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying sahajatlas with  Cloudflare Pages  Cloudflare Pages

Latest commit: 070c3fa
Status: ✅  Deploy successful!
Preview URL: https://8c7d467a.sahajatlas.pages.dev
Branch Preview URL: https://docs-report-empty-allowlist.sahajatlas.pages.dev

View logs

@Ardnived
Ardnived merged commit 7082edd into main Oct 1, 2026
10 checks passed
@Ardnived
Ardnived deleted the docs/report-empty-allowlist branch October 1, 2026 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

1 participant