Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,6 @@ const config = {
deploymentBranch: 'gh-pages',
trailingSlash: true,

// GitHub Pages can't set COOP/COEP response headers, which the embedded
// StackBlitz sandbox (WebContainers) requires for cross-origin isolation.
// This service worker shim injects them client-side.
// https://developer.stackblitz.com/platform/webcontainers/browser-support#embedding
scripts: ['/coi-serviceworker.js'],

onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',

Expand Down
6 changes: 1 addition & 5 deletions src/components/Sandbox/Iframe.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ export const Iframe = (
return (
<iframe
loading="lazy"
// the page is cross-origin isolated (COEP) for the StackBlitz sandbox,
// which blocks cross-origin frames that don't serve COEP themselves;
// the credentialless attribute (Chromium) exempts this frame from that check
{...{ credentialless: 'true' }}
{...props}
onLoad={() => {
setLoaded(true);
Expand All @@ -22,4 +18,4 @@ export const Iframe = (
)}
/>
);
};
};
149 changes: 0 additions & 149 deletions static/coi-serviceworker.js

This file was deleted.