Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TASK] Add nonce metatag to TYPO3 backend as well #88

Merged
merged 1 commit into from
Oct 31, 2024
Merged

Conversation

s2b
Copy link
Owner

@s2b s2b commented Oct 31, 2024

This adds the special nonce metatag to the TYPO3 backend that vite uses to inject its assets CSP-friendly when the dev server is used. Naturally, this is a security-relevant change since it fiddles with the security policies in the TYPO3 backend. However, since this is really only used if the dev server is activated in the extension configuration, this is not critical for production systems.

On the flipside it enables the usage of the Vite dev server for some backend use cases, for example in backend module templates or in preview templates for content elements.

Resolves: #82

This adds the special nonce metatag to the TYPO3 backend that vite uses to
inject its assets CSP-friendly when the dev server is used. Naturally, this is
a security-relevant change since it fiddles with the security policies in the
TYPO3 backend. However, since this is really only used if the dev server is
activated in the extension configuration, this is not critical for production
systems.

On the flipside it enables the usage of the Vite dev server for some backend
use cases, for example in backend module templates or in preview templates
for content elements.

Resolves: #82
@s2b s2b merged commit b3a418f into main Oct 31, 2024
23 checks passed
@s2b s2b deleted the task/cspBackend branch October 31, 2024 14:14
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.

Load CSP middleware in backend as well?
1 participant