32,563 questions
3
votes
2
answers
83
views
Cycode scan recommends HTML sanitization for iframe.src assignment, but I'm only using a URL—what is the proper mitigation?
We have the following code in our Angular application:
const auth_token = sessionStorage.getItem('auth_token') ||
this.sessionStorage.retrieve('authenticationtoken') ||
...
1
vote
0
answers
37
views
Hidden button player-controls-a11y-toggle is not visible when focused in YouTube iframe embed
I have a YouTube video embedded using the following URL:
https://www.youtube.com/embed/${videoId}?rel=0&autoplay=1
When navigating with the Tab key, there is a hidden button with the ID `player-...
1
vote
1
answer
229
views
Error code 153 when trying to use Youtube Embed | HTML
UPDATE:
somehow the embed shows up/works when I'd host the website on neocities but when I am checking the website locally it doesn't show up for some reason
When I try to use a youtube video embed in ...
Best practices
0
votes
2
replies
71
views
Best approach making two iframes communicate on the same page?
I intended to make some sort of library website where I can track my reading and share them but I'm unsure what's the best option to go forward with.
Currently the layout uses two iframes:
one iframe ...
0
votes
0
answers
88
views
YouTube player Error 153 embedder.identity.missing.referrer for about:blank iframe
When embedding YouTube player inside dynamically created iframe, receive Error 153:
const $ = jQuery;
$(function() {
$('body').html('<iframe title="View" style="border: 0; width: ...
Best practices
0
votes
0
replies
77
views
Reliable cross-origin iframe resizing: iOS Safari drops postMessage on device orientation change (ITP issue)
I am architecting a frontend wrapper to integrate third-party HTML5/WebGL demos into a portal. Due to strict security policies, the external app runs inside an iframe hosted on a different domain. I ...
-2
votes
1
answer
87
views
Selectively route keydown events to iframe or parent
I would like to capure some keydown events (e.g. SPACE) in the parent website and all the other keydown events in an iframe inside the parent.
It seems, as soon as the iframe gets focus (which seems ...
0
votes
0
answers
114
views
iframe-resizer only shows first ~2 elements of iframe content (height not resizing)
I am embedding multiple local HTML files into a parent page using iframe-resizer v5.5.9. Each iframe contains many block elements (e.g. multiple <h1>), but only the first ~2 items are visible. ...
0
votes
1
answer
75
views
how to change content-security-policy frame-ancestors for a static webpage using iframes
I have a container webpage A and it has two iframes. First iframe loads a webpage B which has a single url pointing to an external website. When i click this url, it sends message via PostMesssage to ...
3
votes
0
answers
164
views
Embedded static build in iframe (Electron Forge + Vite)
In principle, all I'm looking to accomplish is embed a static build of a web app into an electron powered vite app.
Context
== File Structure ==
- public/
| - static_build/
| - index.html
| - ...
...
1
vote
2
answers
179
views
Using iframe in React to display local HTML file
I am trying to use an iframe in my React app to display a local HTML file. When I try to run my app (npm run start) it instead seems like the iframe is loading index.html recursively. It works fine ...
2
votes
1
answer
182
views
Blob link does not work in iframe html content in local file or Blob URL alternative in local file development
let url = (content, type) =>
URL.createObjectURL (
new Blob ([content], {type}));
let cssUrl = url ('#d1 { color: green; }',
'text/css');
let htmlUrl = url (`
<link rel=stylesheet ...
0
votes
0
answers
30
views
How to hide or disable the search bar in the MarineTraffic iframe embed?
I am embedding the MarineTraffic map using the official <iframe> embed.
The embedded map displays a search bar, but the search does not work and always returns “Nothing to sea here”, which ...
1
vote
0
answers
101
views
Clerk authentication redirect loop in cross-origin iframe
I am trying to embed my website inside iframe but its not working and showing this error:
Iframe Error Image : champion-locust-61.clerk.accounts.dev redirected you too many times.
I haven't added ...
0
votes
1
answer
113
views
Embedding YouTube User Uploads with <iframe>
I am trying to embed my uploaded videos to youtube using an <iframe> tag. I have tried using my channel handle, my channel handle with an @, and my channel ID, but it just shows a gray window ...