Skip to content

hardening: add sandbox CSP for HTML email viewer#6141

Merged
WofWca merged 1 commit intomainfrom
wofwca/61974c534a
Mar 21, 2026
Merged

hardening: add sandbox CSP for HTML email viewer#6141
WofWca merged 1 commit intomainfrom
wofwca/61974c534a

Conversation

@WofWca
Copy link
Member

@WofWca WofWca commented Mar 20, 2026

We already have JavaScript disabled, and we don't need
any of the allow-... values:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Content-Security-Policy/sandbox.

I have checked that it still shows some email messages properly,
and "Load remote content" also works.
Clicking on links also works as usual.
But I didn't check this on Tauri.

We already have JavaScript disabled, and we don't need
any of the `allow-...` values:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Content-Security-Policy/sandbox.

I have checked that it still shows some email messages properly,
and "Load remote content" also works.
Clicking on links also works as usual.
But I didn't check this on Tauri.
Copy link
Member

@nicodh nicodh left a comment

Choose a reason for hiding this comment

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

Reviewed by reading & testing

@WofWca WofWca merged commit 9d2b3c8 into main Mar 21, 2026
20 checks passed
@WofWca WofWca deleted the wofwca/61974c534a branch March 21, 2026 09:10
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.

2 participants