-
Notifications
You must be signed in to change notification settings - Fork 198
Description
See this comment.
We're trying to add nonces to
elm-css-generated<style>tags, and are running into an issue that is not resolved by #570.We're using
elm-form'sForm.renderStyledHtml, which callsHtml.Styled.Lazy.lazy4, which callsVirtualDom.Styled.lazy4, which callsVirtualDom.Styled.toUnstyled.We need to use
toNonceUnstyledto pass the nonce of course, but there's no way to do this currently even ifForm.renderStyledHtmltook an optionalnonce: it usesHtml.Styled.Lazywhich does not expose any way of passing the nonce through to theVirtualDom.Styledinternals.Unless I'm missing something, I think for CSP nonce support we would need to add
Html.Styled.lazy*andVirtualDom.Styled.lazy*variants that take a nonce as argument (and calltoNonceUnstyledinternally).