htmx
htmx copied to clipboard
CSP issue with IndicatorStyles - needs a htmx.config.inlineStyleNonce config option
Please add config option htmx.config.inlineStyleNonce:'' and extend function insertIndicatorStyles to include:
"<style nonce=\"" + htmx.config.inlineStyleNonce + "\">\
." + htmx.config.indicatorClass + "{opacity:0;transition: opacity 200ms ease-in;}\
." + htmx.config.requestClass + " ." + htmx.config.indicatorClass + "{opacity:1}\
." + htmx.config.requestClass + "." + htmx.config.indicatorClass + "{opacity:1}\
</style>");
Tested it in a locale modified installation. Works.