Support for credentialless iframes to address COEP header needs #4913
Closed
coatless
started this conversation in
Feature Requests
Replies: 2 comments 1 reply
-
This seems like something we should 100% support. I'll open an issue to track, thanks! We're in hard-freeze mode for the upcoming 1.3 release, but we'll do this early in the 1.4 cycle, since it seems pretty low-risk. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Thanks for reporting this @coatless and the great supporting research. Let's move the conversation to #4914. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Right now, the video short code
{{ video }}
provides a standard iframe that automatically assumes the pages default headers.quarto-cli/src/resources/extensions/quarto/video/video.lua
Line 81 in b0d668e
quarto-cli/src/resources/extensions/quarto/video/video.lua
Line 108 in b0d668e
quarto-cli/src/resources/extensions/quarto/video/video.lua
Line 124 in b0d668e
Would it be possible to have the short-code support or set by default a
credentialless
state? e.g.The
credentialles
state is important for Cross-Origin-Embedder-Policy(COEP) environments. For webR startup and package installs, we need to set the COOP and COEP headers to significantly speed up the availability of in the browser R editor. We're running into issues with the iframe because when we turn on COEP, then any embedded lecture video from YouTube using the video shortcode is blocked with
"youtube refused to connect."
By having the
<iframe>
tag includecredentialless
, the iframe is loaded from a different, empty context. In particular, it is loaded without cookies. This allows for the removal of the COEP restriction for just the video will allow the entire page to still fall under the custom COOP and COEP headers.For more background, please see:
iframe-credentialless
set: https://developer.chrome.com/blog/iframe-credentialless/Where the issue arose: coatless/quarto-webr#8
Beta Was this translation helpful? Give feedback.
All reactions