{ "@context": "https://schema.org", "@id": "https://webspecification.com/spec/privacy/third-party-scripts.jsonld", "@graph": [ { "@type": "TechArticle", "@id": "https://webspecification.com/spec/privacy/third-party-scripts/#article", "headline": "Third-party scripts and privacy", "description": "Every script loaded from another domain can read cookies, see the URL, and exfiltrate data from your page. Audit them, justify them, and lock them down.", "url": "https://webspecification.com/spec/privacy/third-party-scripts/", "inLanguage": "en", "isPartOf": { "@type": "WebSite", "@id": "https://webspecification.com/#website", "name": "Web Specification Studio", "url": "https://webspecification.com" }, "author": { "@type": "Person", "name": "Web Specification Studio", "url": "https://webspecification.com" }, "publisher": { "@type": "Organization", "@id": "https://webspecification.com/#organization", "name": "Web Specification Studio", "url": "https://webspecification.com" }, "license": "https://creativecommons.org/licenses/by/4.0/", "dateModified": "2026-07-09T00:00:00.000Z", "citation": [ { "@type": "CreativeWork", "name": "MDN — Content Security Policy (CSP)", "url": "https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/CSP", "publisher": { "@type": "Organization", "name": "MDN" } }, { "@type": "CreativeWork", "name": "EDPB Guidelines 2/2023 on Technical Scope of Art. 5(3) ePrivacy Directive", "url": "https://edpb.europa.eu/our-work-tools/our-documents/guidelines/guidelines-22023-technical-scope-art-53-eprivacy-directive_en", "publisher": { "@type": "Organization", "name": "EDPB" } }, { "@type": "CreativeWork", "name": "MDN — Subresource Integrity", "url": "https://developer.mozilla.org/en-US/docs/Web/Security/Defenses/Subresource_Integrity", "publisher": { "@type": "Organization", "name": "MDN" } } ] }, { "@type": "BreadcrumbList", "@id": "https://webspecification.com/spec/privacy/third-party-scripts/#breadcrumb", "itemListElement": [ { "@type": "ListItem", "position": 1, "name": "Home", "item": "https://webspecification.com/" }, { "@type": "ListItem", "position": 2, "name": "Spec", "item": "https://webspecification.com/spec/" }, { "@type": "ListItem", "position": 3, "name": "Privacy", "item": "https://webspecification.com/spec/privacy/" }, { "@type": "ListItem", "position": 4, "name": "Third-party scripts and privacy", "item": "https://webspecification.com/spec/privacy/third-party-scripts/" } ] } ] }