Add nonce value to Gravity Forms inline javascript

I have setup a CSP on my website and I’m looking to make it as strict as possible. I was able to write a function that puts nonce values on all javascript that is registered through Wordpress. The problem I am coming across is that Gravity Forms is putting some javascript inline.

I don’t see a way to add nonce values to these scripts because they aren’t loaded and registered through wordpress.

Is there a way to add a nonce value to these inline scripts?

Hi Robert, I’m not sure I understand the benefit of this or what it might look like? Could you provide an example of what you’re after for one of Gravity Forms’ inline scripts?

1 Like
© 2008 - 2019. Gravity Forms is a project by Rocketgenius Inc.