v3 replacement for csp_nonce
?
#161
Unanswered
hvolschenk
asked this question in
Q&A
Replies: 2 comments 1 reply
-
I did find a (rather crappy) workaround for now, by looking at the code here and here: -<meta name="htmx-config" content='{"inlineStyleNonce":"{{ csp_nonce() }}"}'>
+<meta name="htmx-config" content='{"inlineStyleNonce":"{{ app('csp-nonce') }}"}'> This, however, relies on me knowing the internal workings of this package, which is not ideal. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Same problem! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi.
I've been using
v2
for a while, and today tried to upgrade tov3
.When using
htmx
it's possible to pass them anonce
via configuration:Now it seems like the
csp_nonce()
method has been removedin favour of the
@cspNonce
directive.How would I go about implementing the above in
v3
?Beta Was this translation helpful? Give feedback.
All reactions