mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-10-24 20:36:26 +08:00
Load iframe using the same protocol as the app (#985)
This commit is contained in:
parent
270573d2e6
commit
9fab78d2a6
1 changed files with 5 additions and 1 deletions
|
|
@ -295,8 +295,12 @@ function bindIframeSize(iframe, iframePlaceholder) {
|
|||
// (1): https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia#document_source_security
|
||||
// (2): https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe#attr-sandbox
|
||||
|
||||
// When running Livebook on http:// we want to load the iframe from
|
||||
// http:// as well, otherwise the browser could block asset requests
|
||||
// from the https:// iframe to http:// Livebook. Both protocols are
|
||||
// supported by livebook.space
|
||||
const IFRAME_URL = `${window.location.protocol}//livebook.space/iframe/v2.html`;
|
||||
const IFRAME_SHA256 = "+uJyGu0Ey7uVV7WwRwg7GyjwCkMNRBnyNc25iGFpYXc=";
|
||||
const IFRAME_URL = "https://livebook.space/iframe/v2.html";
|
||||
|
||||
function initializeIframeSource(iframe) {
|
||||
return verifyIframeSource().then(() => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue