Since the 2.5.8 release you can use the WordPress 5.7+ wp_inline_script_attributes filter to add the CSP nonce to the scripts.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Conditional logic blocked by CSP | 1 | 865 | March 26, 2022 | |
Recommends CSP, doesn’t support CSP | 2 | 116 | March 1, 2025 | |
Add nonce value to Gravity Forms inline javascript | 4 | 2614 | June 2, 2021 | |
Content Security Policy header blocks AJAX confirmation | 1 | 285 | April 19, 2024 | |
Wp_inline_script_attributes does not work for the inline Legacy Settings 'Custom Javascript' in the Form settings | 9 | 489 | March 11, 2023 |