Look for a CDN only in the addresses the map page loads, not in its CSRF token #1176
No reviewers
Labels
No labels
accessibility
authentication
breaking change
bug
documentation
enhancement
interface
internationalisation
observability
performance
security
tier
1
tier
2
tier
3
tier/4
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Postulo/postulo!1176
Loading…
Reference in a new issue
No description provided.
Delete branch "fix-map-cdn-test"
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?
test_the_map_is_drawn_by_leaflet_from_this_instanceasserted that "cdn" appeared nowhere in the lowercased page. The CSRF token is random text, and one CI run drew…pcdn82t…and failed.The check now reads only the
srcandhrefattributes, which is what #898 promises: Leaflet and its stylesheet come from this instance. A realunpkg.comor CDN address is still caught (checked by hand against a page that loads both).Locally:
tests/test_company_map.pypasses (45), and ruff passes.Refs #898
🤖 Generated with Claude Code