Skip to content

Commit 09af695

Browse files
authored
Resolve iframe framing issues (#3753)
1 parent 4504893 commit 09af695

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/static/js/almanac.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,8 @@ function upgradeInteractiveFigures() {
426426
iframe.setAttribute('scrolling', fig_img.dataset.scrolling || 'no');
427427
iframe.setAttribute('loading', fig_img.dataset.loading || 'lazy');
428428
iframe.setAttribute('src', fig_img.dataset.iframe);
429+
// Set it to credentialless to avoid issues when it tries to embed the login screen
430+
iframe.setAttribute('credentialless', true);
429431

430432
//The figure should have a link
431433
var parentLink = fig_img.parentNode;

0 commit comments

Comments
 (0)