- Issue created by @paucala
- @paucala opened merge request.
- Issue was unassigned.
- Status changed to Closed: works as designed
over 1 year ago 12:34am 3 June 2023 - πΊπΈUnited States micropat
Definitely do not use SRI on
page.js
β that evergreen file receives important updates and SRI will break it on the very next update.For site security AddToAny supports a strict content security policy (CSP) with nonces; however, nonces aren't currently straightforward to implement in Drupal ( csp module issue β , seckit module issue β¨ Implement a "semi automatic" Nonce settings Needs work ), so it's a good idea to explicitly allow specific domains in
.htaccess
like:Header add Content-Security-Policy "default-src 'unsafe-inline' https://*.addtoany.com https://*.pinterest.com; img-src 'self' data:;"
This explicitly allows domains such as
https://*.addtoany.com
(andhttps://*.pinterest.com
if Pinterest is wanted, for example).