title: Android Webview Video - net::ERR_BLOCKED_BY_RESPONSE
body: <p>I am developing an Excel Tutorials app using Android Studio in which I am creating the lessons using html. In each lesson, there is a step-by-step instruction and video instructions. Now, when I am running my Application using real device. It doesn't shows only the text, not the video. However, when I am testing the html in laptop using Google Chrome, its working fine. Now what should I do?</p>
  <p>I have seen many questions like this but the answers are of how to show the video. But in my html there is text also.</p>
  <p>My code of html :</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;iframe src="https://drive.google.com/file/d/1O0pcJdKQt1ZYf8BTl1WNzgyyo00pnoD5/preview" width="640" height="480"&gt;&lt;/iframe&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>My Android Studio Code :</p>
  <pre><code>public class Lessons_Content extends AppCompatActivity {
  
  ActionBar lessontexttoolbar;
  WebView lessoncontent;
  Integer lessoninteger;
  
  @SuppressLint(&quot;SetJavaScriptEnabled&quot;)
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.content_lessons);
  
      lessontexttoolbar = getSupportActionBar();
      if (lessontexttoolbar != null) {
          lessontexttoolbar.setDisplayHomeAsUpEnabled(true);
      }
  
      lessoncontent = findViewById(R.id.lesson_content);
      lessoncontent.getSettings().setBuiltInZoomControls(true);
      lessoncontent.getSettings().setDisplayZoomControls(true);
      lessoncontent.getSettings().setBlockNetworkLoads(false);
      if (Build.VERSION.SDK_INT &gt;= 19) {
          lessoncontent.getSettings().setCacheMode(WebSettings.LOAD_NO_CACHE);
      }
      lessoncontent.getSettings().setUseWideViewPort(true);
  
      lessoninteger = getIntent().getIntExtra(&quot;lessonextra&quot;, 0);
      
      if (lessoninteger == 0) {
          lessoncontent.setWebChromeClient(new WebChromeClient(){});
          lessoncontent.getSettings().setJavaScriptEnabled(true);
          String html = &quot;&lt;iframe src=\&quot;https://drive.google.com/file/d/1O0pcJdKQt1ZYf8BTl1WNzgyyo00pnoD5/preview\&quot; width=640 height=480 allowfullscreen=true&gt;&lt;/iframe&gt;\n&quot;;
          lessoncontent.loadData(html, &quot;text/html&quot;, &quot;UTF-8&quot;);
      }
  
  }
  </code></pre>
  <p>Output :</p>
  <p>Webpage not available.</p>
  <p>The Webpage at 'url' cannot be loaded because :</p>
  <p>net::ERR_BLOCKED_BY_RESPONSE</p>
  <p>Any help would be appreciated.</p>
  <p>Thank you.</p>
  <p>Screenshot after implementing the code of <a href="https://stackoverflow.com/a/67789248/15940811">this answer</a>.</p>
  <p><a href="https://i.stack.imgur.com/APWJV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/APWJV.png" alt="enter image description here" /></a></p>