mdn / mdn/content

Cannot download with the "Download my painting" button; CSP error: “blocked the loading of a resource at data:image/png;base64”

Open
#43,998 10 comments 0 reactions 0 assignees View on GitHub
Content:HTML
Dominant language
Markdown
Stars
11k
Forks
23.2k
Avg merge
2d 9h
Merged PRs (30d)
331

Description

### MDN URL

https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/a#using_the_download_attribute_to_save_a_canvas_as_a_png

### What specific section or headline is this issue about?

_No response_

### What information was incorrect, unhelpful, or incomplete?

When you click the "Download my painting" button on the example canvas, it doesn't download the painting.

### What did you expect to see?

I expected to download a png file of the canvas.

### Do you have any supporting links, references, or citations?

_No response_

### Do you have anything more you want to share?

In the console it keeps printing this error: `Content Security Policy: The page’s settings blocked the loading of a resource at data:image/png;base64,[insert some base64]... ("frame-src")` when I click the download button.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.