Skip to content

fix(live-sample): add sandbox="allow-downloads" to all samples#1215

Merged
caugner merged 1 commit intomainfrom
live-sample-allow-downloads
Jan 15, 2026
Merged

fix(live-sample): add sandbox="allow-downloads" to all samples#1215
caugner merged 1 commit intomainfrom
live-sample-allow-downloads

Conversation

@LeoMcA
Copy link
Member

@LeoMcA LeoMcA commented Jan 15, 2026

Alternative to mdn/rari#472.

Fixes mdn/content#42463.

Apply allow-downloads to all live samples with no need for authors to explicitly allowlist it.

Tested locally with http://localhost:3000/en-US/docs/Web/HTML/Reference/Elements/a#using_the_download_attribute_to_save_a_canvas_as_a_png

@github-actions
Copy link
Contributor

3a85b62 was deployed to: https://fred-pr1215.review.mdn.allizom.net/

@caugner caugner changed the title fix(live-sample): add allow-downloads to all samples fix(live-sample): add sandbox="allow-downloads" to all samples Jan 15, 2026
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.

HTML a element reference: example cannot work, it doesn't allow download

2 participants