Skip to content

fix: update stale CSP meta tag in dashboard.html to allow Esri tiles - #20

Merged
selectdimensions merged 1 commit into
mainfrom
fix/admin-csp-arcgis
Oct 3, 2026
Merged

selectdimensions merged 1 commit into
mainfrom
fix/admin-csp-arcgis

Conversation

@selectdimensions

Copy link
Copy Markdown
Collaborator

Summary

admin/dashboard.html carries its own <meta http-equiv="Content-Security-Policy"> in addition to the HTTP header CSP set by vercel.json. When the admin preview map's tile provider was switched from OSM to Esri's arcgisonline.com, vercel.json's header was updated but this duplicate meta-tag CSP was missed.

Browsers enforce both CSPs by intersection (most restrictive wins per directive), so the stale img-src here was silently blocking the preview map's tiles in production regardless of the header fix — found while reading this file in preparation for unrelated work.

Test plan

  • npm run validate passes unchanged.
  • Confirmed img-src now matches vercel.json's header exactly.

🤖 Generated with Claude Code

dashboard.html carries its own <meta http-equiv="Content-Security-Policy">
in addition to the HTTP header CSP set by vercel.json. When the admin
preview map's tile provider was switched from OSM to Esri's
arcgisonline.com (see the earlier organization-network-map.html /
admin.js fix), vercel.json's header was updated but this duplicate
meta-tag CSP was missed. Browsers enforce both CSPs by intersection
(most restrictive wins per directive), so the stale img-src here was
silently blocking the preview map's tiles in production regardless of
the header fix.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018KR2ZSHK8Skmyd1zyTaw7v
Copilot AI balanced review requested due to automatic review settings October 3, 2026 03:40
@vercel

vercel Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
interactive-map Ready Ready Preview Oct 3, 2026 3:40am UTC

@selectdimensions
selectdimensions merged commit 18a1cc5 into main Oct 3, 2026
4 checks passed
@PraxiumLearning03
PraxiumLearning03 deleted the fix/admin-csp-arcgis branch October 3, 2026 03:41

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The targeted CSP update correctly matches the tile provider and configured header.

Review effort: Balanced
Findings: None

What changed in this PR

Updates the dashboard’s CSP to permit Esri preview-map tiles.

Changes:

  • Replaces the obsolete OpenStreetMap image source with Esri’s tile host.
  • Aligns img-src with the admin CSP header.
File Description
admin/​dashboard.html Allows images from server.arcgisonline.com.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

This branch was successfully deployed

1 active deployment
Preview — 93668044 Deployed Oct 3, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants