question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

some urls load in iframe, others do not

See original GitHub issue

this 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:closed
  • Created 4 years ago
  • Comments:11

github_iconTop GitHub Comments

1reaction
github-actions[bot]commented, Sep 2, 2019

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

0reactions
JeremyBradshaw7commented, Feb 13, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found