Re:How I use HTMX with Go
by Abishek_Muthian on Wednesday July 15, 2026 @12:56PM
(#48923778)
AFAIK Hyperscript doesn't require `unsafe-eval`, when the optional features of htmx like `hx-on:*`, `hx-vals js:`, `hx-confirm js:` is used it required the `unsafe-eval` but now there's extension[1] to use even that without compromising on strict CSP through nonce.
>the risk from Hyperscript is not greater than any other JavaScript in the application.
This is not really the case. If all of your JS code is loaded via <script src="..."> tags from bundles on your server, and you have a CSP that blocks unsafe-eval or unsafe-inline, then you have a pretty good barrier against execution of untrusted code on your page.