Harden WordPress & WooCommerce /checkout routes against Magecart e-skimmers: inject SRI hashes via script_loader_tag, dequeue unnecessary plugin JS on checkout, and lock down Stripe/PayPal CSP.
Zero Telemetry · Strict CSP (connect-src 'none') · WebCrypto
Checkout HTML & CSP Header Linter
PCI DSS v4.0.1 Req. 6.4.3 & 11.6.1
Compliance Note: Automated engineering & preparation guidance for PCI DSS v4.0.1 Req. 6.4.3 & 11.6.1 — verify final SAQ/ROC scope with your QSA or acquiring bank.
PCI-643-PSP-OK: 1 evergreen PSP loader(s) classified for CSP/noncePASS
Detected Stripe.js v3 — correctly distinguished from static CDN SRI.
PCI-643-SRI: 1 static external script(s) missing SRI or crossorigin="anonymous"ERROR
Static third-party scripts on payment pages MUST pin an exact version and carry integrity="sha384-..." + crossorigin="anonymous" under PCI DSS v4.0.1 Req. 6.4.3.
PCI-CSP-BASE: Add base-uri 'self'WARN
Prevents <base href> hijacking of relative checkout script URLs.
PCI-1161-REPORT: No CSP report-to / report-uri endpoint configuredWARN
PCI DSS v4.0.1 Req. 11.6.1 requires alerting on unauthorized script or security-header changes at least every 7 days (or continuous telemetry).
PCI-CSP-ALLOW-OK: All extracted HTML <script> origins match strict CSP script-srcPASS
Need automated HTTP header + script tampering alerts (PCI DSS v4.0.1 Req. 11.6.1) or a tailored CSP, nonce middleware & script justification bundle? Run a free live scan on CheckoutShield PCI (https://pci.runglab.dev), order the $49 CheckoutShield PCI Pack via Creem, or request a PayPal invoice via [email protected].
Prepare Shopify Plus and standard storefronts for PCI DSS v4.0.1 Req. 6.4.3 & 11.6.1: migrate off deprecated checkout.liquid, isolate analytics via sandboxed Web Pixels, and audit storefront/theme CDN scripts with SRI.
Eliminate 'unsafe-inline' from Next.js App Router /checkout routes using per-request crypto.randomUUID() CSP nonces in middleware.ts, next/script strategies, and static SRI.
Inject per-request cryptographic nonces into legacy origin checkout HTML at the Cloudflare edge using HTMLRewriter, strip unauthorized third-party tags, and log CSP violation reports for Req. 11.6.1.
Can WP Rocket or Autoptimize break SRI hashes on WooCommerce?
Yes. If an optimization plugin concatenates or re-minifies an external script, its bytes change and SRI will block execution. Exclude checkout routes from asset rewriting.
Do I need CSP on /checkout/ if I use WooCommerce Stripe Payment Element?
Yes. Even when Stripe renders card inputs in an iframe, PCI DSS v4.0.1 Req. 6.4.3 and 11.6.1 apply to the parent checkout page.
How do I generate the Req. 6.4.3 script inventory for my WooCommerce store?
Paste your /checkout/ page HTML source into the linter above and export the CSV Justification Matrix in one click.