fix: toets de Vimeo-embed op host in plaats van op contains #543
No reviewers
Labels
No labels
accepted
bug
declined
docs
duplicate
enhancement
good first issue
in-progress
needs-info
privacy
security
triage
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
LibreKAT/Ocideck!543
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/embed-host"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Second item from #516. The YouTube branch already compared on host, with a comment above it spelling out exactly why: with a
contains,https://youtube.com.kwaadaardig.example/gets through. The Vimeo branch sitting next to it usedcontainsanyway.So this was not a gap in knowledge. The reasoning had been done and written down, and applied to one of the two branches.
Changes
vimeoPlayerNavigationAllowed— host equality or subdomain suffix, same shape as the YouTube one.Verification
Six tests covering both players, both the allowed origins and the lookalike hosts. Mutation-checked: putting
containsback makes two of the six fail.make checkgreen.Part of #516; seven items left there.