{"id":15795,"date":"2026-11-17T07:50:00","date_gmt":"2026-11-17T06:50:00","guid":{"rendered":"https:\/\/www.lukaswojcik.com\/blog\/?p=15795"},"modified":"2026-11-14T23:38:46","modified_gmt":"2026-11-14T22:38:46","slug":"embedding-third-party-files-on-websites-checking-origins-permissions-and-tamper-protection","status":"publish","type":"post","link":"https:\/\/www.lukaswojcik.com\/blog\/en\/web-development\/tutorials-en-web-development\/embedding-third-party-files-on-websites-checking-origins-permissions-and-tamper-protection\/","title":{"rendered":"Embedding Third-Party Files on Websites: Checking Origins, Permissions and Tamper Protection"},"content":{"rendered":"<p>External files are a normal part of a website. Three separate questions matter: which address supplies a file, what capabilities does the embedded content receive, and is a specific file version expected? A host list answers only part of the problem.<\/p>\n<h2>Origin, domain and operator are different concepts<\/h2>\n<p>A browser origin combines scheme, host and port. <code>https:\/\/example.com<\/code> and <code>https:\/\/static.example.com<\/code> have different origins. Grouping by registrable domain can help an inventory, but does not prove common technical control: subdomains can be delegated to services. Conversely, different domains can share an operator.<\/p>\n<p>An up-to-date Public Suffix List records suffixes such as com and co.uk. It is more suitable for domain grouping than simply retaining the last two labels, which would mistake co.uk for a registrable domain. Even correct grouping does not establish service ownership, responsibilities or the details of an integration.<\/p>\n<figure class=\"lw-diagram\"><img decoding=\"async\" src=\"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/diagrams\/dia-15795-review-20261024.png?v=20261114\" width=\"1120\" height=\"580\" loading=\"lazy\" alt=\"Origin, capabilities and integrity require separate checks.\"><figcaption>Origin, capabilities and integrity require separate checks.<\/figcaption><\/figure>\n<h2>Embedding determines capabilities<\/h2>\n<ul>\n<li><strong>Scripts:<\/strong> An allowed external script runs in the embedding document&#8217;s context and can change content or form values there. Access to other origins is still restricted. HttpOnly cookies, for example, remain unreadable to JavaScript; browser rules and a CSP constrain particular actions.<\/li>\n<li><strong>Stylesheets:<\/strong> CSS changes presentation and can request additional resources. A stylesheet is not a JavaScript program, but trusting CSS is more than a decorative decision.<\/li>\n<li><strong>Iframes:<\/strong> A frame has a separate document context. Across different origins, the same-origin policy restricts direct DOM access. The choice of <code>sandbox<\/code> restrictions and other permissions needs separate assessment.<\/li>\n<li><strong>Images and media:<\/strong> An image file normally gains no JavaScript access to the containing document. A request can nevertheless disclose an IP address and, depending on browser rules, referrer policy and cookie settings, additional information. \u201cPassive\u201d does not mean privacy-neutral.<\/li>\n<\/ul>\n<p>HTML order is not a universal execution order. In particular, <code>async<\/code> can change script ordering; images and stylesheets are not executed like JavaScript.<\/p>\n<h2>What Subresource Integrity protects<\/h2>\n<p>Subresource Integrity (SRI) compares a fetched file with an expected cryptographic hash: a check value calculated from the file contents. A valid hash that does not match prevents use of the resource. This protects the pinned file against unexpected changes, but does not establish harmless code or automatically cover subsequently loaded files.<\/p>\n<p>A nonempty <code>integrity<\/code> attribute does not prove successful verification. The algorithm, digest, response and loading conditions must match. Cross-origin files also require a suitable CORS response. Classic scripts and stylesheets commonly use <code>crossorigin=\"anonymous\"<\/code> for this purpose. That mode omits credentials for cross-origin requests; same-origin requests can still include credentials. JavaScript modules already use CORS.<\/p>\n<h2>Controlled releases<\/h2>\n<p>A versioned file path makes content and hash easier to match. Deployment should pair the reviewed file with its hash, followed by a browser loading test and console inspection. Hashing an unreviewed response merely makes potentially harmful code reproducible.<\/p>\n<p>A continuously updated file at a fixed address is not inherently unverifiable. SRI does, however, require a coordinated release process or a stable version supported by the supplier. Unannounced changes can break the integration. Without that process, loading remains a documented trust decision; the number of files is not a security score.<\/p>\n<h2>Markup is not a network measurement<\/h2>\n<p>HTML-only analysis misses dynamically loaded scripts, CSS resources and interactions. Conversely, preloads, duplicate references, alternative media sources and never-activated elements can overstate actual requests. Markup counts are neither a reliable lower bound nor a complete request inventory.<\/p>\n<p>A defensible inventory records the final URL, time, status, response type and complete HTML. A browser network panel adds requests and initiators for defined page states, such as before and after consent or interaction. An error or blocking page is not an uneventful homepage.<\/p>\n<h2>Limits of the linked checker<\/h2>\n<p>The <a href=\"https:\/\/www.lukaswojcik.com\/blog\/en\/toolbox\/third-party-origin-integrity-checker\/\">Third-Party Origin and Subresource Integrity Checker<\/a> reports clues from HTML. The implementation checked on 25 October 2026 does not download subresources for hash verification and treats any nonempty <code>integrity<\/code> value as present.<\/p>\n<p>Further limits matter: domain grouping uses a short exception list instead of the full Public Suffix List. Pattern matching does not reliably handle <code>srcset<\/code> or the effect of <code>base<\/code>, can count tags inside comments and counts duplicate references separately. A foreign iframe can even appear alongside a misleading finding about the absence of foreign active resources. Individual findings need verification; a green overall result is not security approval.<\/p>\n<div class=\"lw-faq\">\n<h2>Questions and answers<\/h2>\n<h3>Does CSP replace a hash?<\/h3>\n<p>A Content Security Policy (CSP) can use sources, nonces and hashes; a host allowlist is only one approach. Nonces authorize selected inclusions without verifying unchanged file content. With <code>strict-dynamic<\/code>, trust can extend to subsequently loaded scripts. SRI and CSP serve complementary purposes.<\/p>\n<h3>Does HTTPS mean trustworthy content?<\/h3>\n<p>HTTPS protects transport, not against harmful content on the delivery server. Browsers can block HTTP resources within HTTPS pages or upgrade requests according to resource type. Finding no mixed content in HTML does not establish complete protection.<\/p>\n<h3>Are protocol-relative addresses already insecure?<\/h3>\n<p><code>\/\/cdn.example.net\/file.js<\/code> inherits the base URL&#8217;s scheme in a browser. On an HTTPS page this is not automatically mixed content. Explicit HTTPS addresses simplify inspection; the linked checker nevertheless assumes HTTPS for this notation even with an HTTP base.<\/p>\n<\/div>\n<div class=\"lw-quellen\">\n<h2>Sources<\/h2>\n<ul>\n<li><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/Security\/Defenses\/Subresource_Integrity\" target=\"_blank\" rel=\"noopener noreferrer\">MDN: Subresource Integrity<\/a><\/li>\n<li><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/Security\/Defenses\/Same-origin_policy\" target=\"_blank\" rel=\"noopener noreferrer\">MDN: Same-origin policy<\/a><\/li>\n<li><a href=\"https:\/\/publicsuffix.org\/learn\/\" target=\"_blank\" rel=\"noopener noreferrer\">Public Suffix List<\/a><\/li>\n<li><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/HTML\/Reference\/Elements\/iframe\" target=\"_blank\" rel=\"noopener noreferrer\">MDN: iframe<\/a><\/li>\n<li><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/HTML\/Reference\/Attributes\/crossorigin\" target=\"_blank\" rel=\"noopener noreferrer\">MDN: crossorigin<\/a><\/li>\n<li><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/HTTP\/Guides\/CSP\" target=\"_blank\" rel=\"noopener noreferrer\">MDN: Content Security Policy<\/a><\/li>\n<li><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/Security\/Defenses\/Mixed_content\" target=\"_blank\" rel=\"noopener noreferrer\">MDN: Mixed content<\/a><\/li>\n<\/ul>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>External resources require separate checks of origin, capabilities and expected content. SRI, CSP and browser inspection serve different purposes; an HTML inventory alone cannot establish safety.<\/p>\n","protected":false},"author":1,"featured_media":32491,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[158],"tags":[91219,92757,91115],"class_list":["post-15795","post","type-post","status-publish","format-standard","hentry","category-tutorials-en-web-development","tag-tutorial","tag-web-development","tag-web-security"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Embedding Third-Party Files on Websites: Checking Origins, Permissions and Tamper Protection | Lukas Wojcik<\/title>\n<meta name=\"description\" content=\"How a browser decides what is a third-party resource, why 142 foreign scripts carry no integrity attribute, and what SRI can and cannot protect.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.lukaswojcik.com\/blog\/en\/web-development\/tutorials-en-web-development\/embedding-third-party-files-on-websites-checking-origins-permissions-and-tamper-protection\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Embedding Third-Party Files on Websites: Checking Origins, Permissions and Tamper Protection | Lukas Wojcik\" \/>\n<meta property=\"og:description\" content=\"How a browser decides what is a third-party resource, why 142 foreign scripts carry no integrity attribute, and what SRI can and cannot protect.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.lukaswojcik.com\/blog\/en\/web-development\/tutorials-en-web-development\/embedding-third-party-files-on-websites-checking-origins-permissions-and-tamper-protection\/\" \/>\n<meta property=\"og:site_name\" content=\"Lukas Wojcik - Blog\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-17T06:50:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/11\/flux-voll2-15795-15795.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Lukas Wojcik\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Lukas Wojcik\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/web-development\\\/tutorials-en-web-development\\\/embedding-third-party-files-on-websites-checking-origins-permissions-and-tamper-protection\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/web-development\\\/tutorials-en-web-development\\\/embedding-third-party-files-on-websites-checking-origins-permissions-and-tamper-protection\\\/\"},\"author\":{\"name\":\"Lukas Wojcik\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#\\\/schema\\\/person\\\/895f7604f9b6b71aad9bba33af28d0f9\"},\"headline\":\"Embedding Third-Party Files on Websites: Checking Origins, Permissions and Tamper Protection\",\"datePublished\":\"2026-11-17T06:50:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/web-development\\\/tutorials-en-web-development\\\/embedding-third-party-files-on-websites-checking-origins-permissions-and-tamper-protection\\\/\"},\"wordCount\":862,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#\\\/schema\\\/person\\\/895f7604f9b6b71aad9bba33af28d0f9\"},\"image\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/web-development\\\/tutorials-en-web-development\\\/embedding-third-party-files-on-websites-checking-origins-permissions-and-tamper-protection\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/flux-voll2-15795-15795.png\",\"keywords\":[\"Tutorial\",\"Web Development\",\"Web Security\"],\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/web-development\\\/tutorials-en-web-development\\\/embedding-third-party-files-on-websites-checking-origins-permissions-and-tamper-protection\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/web-development\\\/tutorials-en-web-development\\\/embedding-third-party-files-on-websites-checking-origins-permissions-and-tamper-protection\\\/\",\"url\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/web-development\\\/tutorials-en-web-development\\\/embedding-third-party-files-on-websites-checking-origins-permissions-and-tamper-protection\\\/\",\"name\":\"Embedding Third-Party Files on Websites: Checking Origins, Permissions and Tamper Protection | Lukas Wojcik\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/web-development\\\/tutorials-en-web-development\\\/embedding-third-party-files-on-websites-checking-origins-permissions-and-tamper-protection\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/web-development\\\/tutorials-en-web-development\\\/embedding-third-party-files-on-websites-checking-origins-permissions-and-tamper-protection\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/flux-voll2-15795-15795.png\",\"datePublished\":\"2026-11-17T06:50:00+00:00\",\"description\":\"How a browser decides what is a third-party resource, why 142 foreign scripts carry no integrity attribute, and what SRI can and cannot protect.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/web-development\\\/tutorials-en-web-development\\\/embedding-third-party-files-on-websites-checking-origins-permissions-and-tamper-protection\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/web-development\\\/tutorials-en-web-development\\\/embedding-third-party-files-on-websites-checking-origins-permissions-and-tamper-protection\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/web-development\\\/tutorials-en-web-development\\\/embedding-third-party-files-on-websites-checking-origins-permissions-and-tamper-protection\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/flux-voll2-15795-15795.png\",\"contentUrl\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/flux-voll2-15795-15795.png\",\"width\":1200,\"height\":630,\"caption\":\"Embedding Third-Party Files on Websites: Checking Origins, Permissions and Tamper Protection\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/web-development\\\/tutorials-en-web-development\\\/embedding-third-party-files-on-websites-checking-origins-permissions-and-tamper-protection\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Embedding Third-Party Files on Websites: Checking Origins, Permissions and Tamper Protection\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/\",\"name\":\"Lukas Wojcik - Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#\\\/schema\\\/person\\\/895f7604f9b6b71aad9bba33af28d0f9\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#\\\/schema\\\/person\\\/895f7604f9b6b71aad9bba33af28d0f9\",\"name\":\"Lukas Wojcik\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/lw-x2.jpg\",\"url\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/lw-x2.jpg\",\"contentUrl\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/lw-x2.jpg\",\"width\":424,\"height\":636,\"caption\":\"Lukas Wojcik\"},\"logo\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/lw-x2.jpg\"},\"sameAs\":[\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Embedding Third-Party Files on Websites: Checking Origins, Permissions and Tamper Protection | Lukas Wojcik","description":"How a browser decides what is a third-party resource, why 142 foreign scripts carry no integrity attribute, and what SRI can and cannot protect.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.lukaswojcik.com\/blog\/en\/web-development\/tutorials-en-web-development\/embedding-third-party-files-on-websites-checking-origins-permissions-and-tamper-protection\/","og_locale":"en_US","og_type":"article","og_title":"Embedding Third-Party Files on Websites: Checking Origins, Permissions and Tamper Protection | Lukas Wojcik","og_description":"How a browser decides what is a third-party resource, why 142 foreign scripts carry no integrity attribute, and what SRI can and cannot protect.","og_url":"https:\/\/www.lukaswojcik.com\/blog\/en\/web-development\/tutorials-en-web-development\/embedding-third-party-files-on-websites-checking-origins-permissions-and-tamper-protection\/","og_site_name":"Lukas Wojcik - Blog","article_published_time":"2026-11-17T06:50:00+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/11\/flux-voll2-15795-15795.png","type":"image\/png"}],"author":"Lukas Wojcik","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Lukas Wojcik","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/web-development\/tutorials-en-web-development\/embedding-third-party-files-on-websites-checking-origins-permissions-and-tamper-protection\/#article","isPartOf":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/web-development\/tutorials-en-web-development\/embedding-third-party-files-on-websites-checking-origins-permissions-and-tamper-protection\/"},"author":{"name":"Lukas Wojcik","@id":"https:\/\/www.lukaswojcik.com\/blog\/#\/schema\/person\/895f7604f9b6b71aad9bba33af28d0f9"},"headline":"Embedding Third-Party Files on Websites: Checking Origins, Permissions and Tamper Protection","datePublished":"2026-11-17T06:50:00+00:00","mainEntityOfPage":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/web-development\/tutorials-en-web-development\/embedding-third-party-files-on-websites-checking-origins-permissions-and-tamper-protection\/"},"wordCount":862,"commentCount":0,"publisher":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/#\/schema\/person\/895f7604f9b6b71aad9bba33af28d0f9"},"image":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/web-development\/tutorials-en-web-development\/embedding-third-party-files-on-websites-checking-origins-permissions-and-tamper-protection\/#primaryimage"},"thumbnailUrl":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/11\/flux-voll2-15795-15795.png","keywords":["Tutorial","Web Development","Web Security"],"articleSection":["Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.lukaswojcik.com\/blog\/en\/web-development\/tutorials-en-web-development\/embedding-third-party-files-on-websites-checking-origins-permissions-and-tamper-protection\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/web-development\/tutorials-en-web-development\/embedding-third-party-files-on-websites-checking-origins-permissions-and-tamper-protection\/","url":"https:\/\/www.lukaswojcik.com\/blog\/en\/web-development\/tutorials-en-web-development\/embedding-third-party-files-on-websites-checking-origins-permissions-and-tamper-protection\/","name":"Embedding Third-Party Files on Websites: Checking Origins, Permissions and Tamper Protection | Lukas Wojcik","isPartOf":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/web-development\/tutorials-en-web-development\/embedding-third-party-files-on-websites-checking-origins-permissions-and-tamper-protection\/#primaryimage"},"image":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/web-development\/tutorials-en-web-development\/embedding-third-party-files-on-websites-checking-origins-permissions-and-tamper-protection\/#primaryimage"},"thumbnailUrl":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/11\/flux-voll2-15795-15795.png","datePublished":"2026-11-17T06:50:00+00:00","description":"How a browser decides what is a third-party resource, why 142 foreign scripts carry no integrity attribute, and what SRI can and cannot protect.","breadcrumb":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/web-development\/tutorials-en-web-development\/embedding-third-party-files-on-websites-checking-origins-permissions-and-tamper-protection\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.lukaswojcik.com\/blog\/en\/web-development\/tutorials-en-web-development\/embedding-third-party-files-on-websites-checking-origins-permissions-and-tamper-protection\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/web-development\/tutorials-en-web-development\/embedding-third-party-files-on-websites-checking-origins-permissions-and-tamper-protection\/#primaryimage","url":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/11\/flux-voll2-15795-15795.png","contentUrl":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/11\/flux-voll2-15795-15795.png","width":1200,"height":630,"caption":"Embedding Third-Party Files on Websites: Checking Origins, Permissions and Tamper Protection"},{"@type":"BreadcrumbList","@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/web-development\/tutorials-en-web-development\/embedding-third-party-files-on-websites-checking-origins-permissions-and-tamper-protection\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.lukaswojcik.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Embedding Third-Party Files on Websites: Checking Origins, Permissions and Tamper Protection"}]},{"@type":"WebSite","@id":"https:\/\/www.lukaswojcik.com\/blog\/#website","url":"https:\/\/www.lukaswojcik.com\/blog\/","name":"Lukas Wojcik - Blog","description":"","publisher":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/#\/schema\/person\/895f7604f9b6b71aad9bba33af28d0f9"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.lukaswojcik.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.lukaswojcik.com\/blog\/#\/schema\/person\/895f7604f9b6b71aad9bba33af28d0f9","name":"Lukas Wojcik","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/07\/lw-x2.jpg","url":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/07\/lw-x2.jpg","contentUrl":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/07\/lw-x2.jpg","width":424,"height":636,"caption":"Lukas Wojcik"},"logo":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/07\/lw-x2.jpg"},"sameAs":["https:\/\/www.lukaswojcik.com\/blog"]}]}},"_links":{"self":[{"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/posts\/15795","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/comments?post=15795"}],"version-history":[{"count":7,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/posts\/15795\/revisions"}],"predecessor-version":[{"id":33558,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/posts\/15795\/revisions\/33558"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/media\/32491"}],"wp:attachment":[{"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/media?parent=15795"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/categories?post=15795"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/tags?post=15795"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}