G'day Developer Superheros!
Using default-src 'none'
to block everything that’s not explicitly whitelisted elsewhere in the CSP. The only thing I'm struggling with is external HTML loaded by Stripe payment processor and ShareThis social sharing buttons.
Typical violations are htm
and html
URLs:
https://t.sharethis.com/a/t_.htm
https://js.stripe.com/v3/m-outer-ff599b5032b79ea1f89ba5416bea26e6.html
I can't figure out the correct policy directive/resource type to allow htm
and html
URLs.
I'm trying to avoid adding these to default-src
Can you please offer guidance or suggestions that might work?
My question is unique in that the suggested duplicate does not identify the correct directive to allow
htm
andhtml
URLs.
Much Thanks!