skip to Main Content

Content Security Policy flags script as blocked due to use of 'eval' but script still loads? – Javascript

Chrome (111), FireFox (111), and MS Edge (111) all behave the same way. My (abbreviated for clarity) CSP header includes: content-security-policy: default-src 'self';script-src 'self' blob: *.usercentrics.eu;connect-src 'self' *.usercentrics.eu;font-src 'self' data: ;img-src 'self' blob: data: *.usercentrics.eu;style-src 'self' 'unsafe-inline' ;frame-src 'self' ;object-src…

VIEW QUESTION

Stripe CSP when loading stripe.js – Html

I'm trying to load <script src="https://js.stripe.com/v3/"></script> on a static page, so I've added the following Content-Security-Policy: <meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self' 'unsafe-inline' https://js.stripe.com https://maps.googleapis.com; connect-src 'self' https://api.stripe.com https://hooks.stripe.com https://maps.googleapis.com; frame-src 'self' https://js.stripe.com https://hooks.stripe.com; " /> I then start my…

VIEW QUESTION
Back To Top
Search