Skip to content

fix: "Save as picture" feature (XLSX) not working - #162

Open
NewNork wants to merge 1 commit into
Euro-Office:mainfrom
NewNork:fix/csp-data-uri-frame-src
Open

fix: "Save as picture" feature (XLSX) not working#162
NewNork wants to merge 1 commit into
Euro-Office:mainfrom
NewNork:fix/csp-data-uri-frame-src

Conversation

@NewNork

@NewNork NewNork commented Aug 29, 2026

Copy link
Copy Markdown

Saving a chart as an image renders a data:image/png;base64 URI in an iframe, which the CSP frame-src directive currently blocks as "data:" isn't implicitly covered by an origin allowlist.

This results in a javascript console error "Content-Security-Policy: The page’s settings blocked the loading of a resource (frame-src) at data:image/png;base64,iVBORw0KGgoAAAANSU… because it violates the following directive: “frame-src 'self' https://eurooffice.example.com”

Saving a chart as an image renders a data:image/png;base64 URI in
an iframe, which the CSP frame-src directive currently blocks as
"data:" isn't implicitly covered by an origin allowlist.
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.

1 participant