Skip to content

Commit 86cd166

Browse files
erkamyamanatscott
authored andcommitted
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.
1 parent 5829177 commit 86cd166

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

adev/angular.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
"buildTarget": "web-ui:build",
7171
"headers": {
7272
"Cross-Origin-Opener-Policy": "same-origin",
73-
"Cross-Origin-Embedder-Policy": "require-corp"
73+
"Cross-Origin-Embedder-Policy": "credentialless"
7474
}
7575
}
7676
},

adev/firebase.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"headers": [
5050
{
5151
"key": "Cross-Origin-Embedder-Policy",
52-
"value": "require-corp"
52+
"value": "credentialless"
5353
}
5454
]
5555
},
@@ -71,7 +71,7 @@
7171
},
7272
{
7373
"key": "Cross-Origin-Embedder-Policy",
74-
"value": "require-corp"
74+
"value": "credentialless"
7575
}
7676
]
7777
}

0 commit comments

Comments
 (0)