You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to have the option to add a nonce to the script tag without having to override classes.
I've tried overriding the CookiesManager getDefaultScriptTag function to add a nonce, however for some reason I keep getting the $this->shouldDisplayNotice() as true when the Cookie is in my Storage with 'consent_at' filled.
But when I make these changes in the vendor file, it's working.
Any ideas/suggestions?
The text was updated successfully, but these errors were encountered:
I made a workaround; I have extended the CookiesManager class and overriden the getDefaultScriptTag() function with a 'nonce="' . csp_nonce() . '" '. It would've been made easier if this was just a configuration option.
I would like to have the option to add a nonce to the script tag without having to override classes.
I've tried overriding the CookiesManager
getDefaultScriptTag
function to add a nonce, however for some reason I keep getting the$this->shouldDisplayNotice()
as true when the Cookie is in my Storage with 'consent_at' filled.But when I make these changes in the vendor file, it's working.
Any ideas/suggestions?
The text was updated successfully, but these errors were encountered: