some urls load in iframe, others do not
See original GitHub issuethis works:
<WebView
ref={webview => {
this.webView = webview;
}}
onLoadEnd={this.onWebViewLoad}
onMessage={this.messageEvent}
startInLoadingState={true}
javaScriptEnabled={true}
source={{html: `<iframe src="https://www.youtube.com/embed/cqyziA30whE" allow="autoplay; encrypted-media"></iframe>`}}
/>
this does not:
<WebView
ref={webview => {
this.webView = webview;
}}
onLoadEnd={this.onWebViewLoad}
onMessage={this.messageEvent}
startInLoadingState={true}
javaScriptEnabled={true}
source={{html: `<iframe src="https://www.youtube.com" allow="autoplay; encrypted-media"></iframe>`}}
/>
why is that?
Issue Analytics
- State:
- Created 4 years ago
- Comments:11
Top Results From Across the Web
iFrame not Loading some URL's but loading others
I dont understand why the iframe code even from w3schools doesn't work... Am i not loading a dependency? I'm using the latest version...
Read more >Certain URL is not loading in iFrame - can't figure out why
I can't figure out why the blog is not seen in my iframe page - other URLs are working. Here the blog I...
Read more >Iframe not loading in HTML - CodeProject
The site you're trying to load has either set the X-Frame-Options[^] header, or has sent a content security policy (CSP) with the frame- ......
Read more >Why some sites are not shown when embedding them in an ...
I'd like to know why do some sites work but others don't when using this payload. For example: <iframe src="http://usatoday.com"> works, however ...
Read more >How to prevent a website from being loaded in an iFrame
Unauthorized content republishing – Other website owners may use iFrames to portion out some of your unique content to display on their website ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hello 👋, this issue has been opened for more than 2 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically
Isn’t it the same issue as https://github.com/react-native-community/react-native-webview/issues/804 ? Workaround is on there, but it’s not an ideal solution.