fix(docs-infra): load cross-origin video embeds under COEP credentialless

adev is cross-origin isolated (COOP same-origin + COEP require-corp) so the
embedded WebContainer editor can use SharedArrayBuffer. Under require-corp the
cross-origin YouTube iframe in `<docs-video>` only loaded in Chromium, leaving
the player blank in Safari.

Switch COEP from `require-corp` to `credentialless`. The page stays cross-origin
isolated, so the editor keeps working, but cross-origin frames are now allowed
to load, which restores the inline player in Safari as well.
This commit is contained in:
Kam
2026-06-09 13:26:18 -07:00
committed by Andrew Scott
parent 5829177729
commit 86cd166141
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -70,7 +70,7 @@
"buildTarget": "web-ui:build",
"headers": {
"Cross-Origin-Opener-Policy": "same-origin",
"Cross-Origin-Embedder-Policy": "require-corp"
"Cross-Origin-Embedder-Policy": "credentialless"
}
}
},
+2 -2
View File
@@ -49,7 +49,7 @@
"headers": [
{
"key": "Cross-Origin-Embedder-Policy",
"value": "require-corp"
"value": "credentialless"
}
]
},
@@ -71,7 +71,7 @@
},
{
"key": "Cross-Origin-Embedder-Policy",
"value": "require-corp"
"value": "credentialless"
}
]
}