Make CSP friendly
GaryJones opened this issue · comments
Gary Jones commented
Instead of the inline script, change it to an enqueued external .js
file, so that Content Security Policies (whitelist or nonce approaches) will work.
WordPress plugin for Genesis child themes. Adds a 'no-js' body class to the front-end, and a small inline script that changes it to `js` if JavaScript is enabled. Allows for styling of elements (like potential hiding) if JavaScript is enabled.
GaryJones opened this issue · comments
Instead of the inline script, change it to an enqueued external .js
file, so that Content Security Policies (whitelist or nonce approaches) will work.