I try to include scripts-styles nonces thru template_redirect hook, works well but there’s 2 scripts remaining out of scope cause they are generated by LSCache plugin. Those are with ‘data-no-optimize’ property in just after head and before /body tags, so they’ve no nonce set.
Is there a way to add them a nonce and add those nonces to CSP extra header ? I tried with litespeed_buffer_after but it does not work
Thanks a lot
- You must be logged in to reply to this topic.