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

generator: Add nonce support for style tags #792

Open
maersu opened this issue Jun 14, 2024 · 0 comments
Open

generator: Add nonce support for style tags #792

maersu opened this issue Jun 14, 2024 · 0 comments

Comments

@maersu
Copy link

maersu commented Jun 14, 2024

Thanks for the awesome templ package!

With v0.2.707, there was the introduction of adding nonce to the script tag. It would be perfect to add it for style tags as well since they also support nonce.

While inline styles are handy, they also allow some CSS injection if a hacker can inject an inline style into the HTML.

@maersu maersu changed the title Add nonce support for style tags Proposal: Add nonce support for style tags Jun 14, 2024
@joerdav joerdav added enhancement New feature or request generator NeedsImplementation Needs implementation labels Jun 14, 2024
@joerdav joerdav changed the title Proposal: Add nonce support for style tags generator: Add nonce support for style tags Jun 14, 2024
@linear linear bot added Migrated and removed enhancement New feature or request Migrated NeedsImplementation Needs implementation generator labels Sep 4, 2024
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

No branches or pull requests

2 participants