title: Android webview :: Refused to display document because display forbidden by X-Frame-Options
body: <p>I am trying to load twitter widget file in webview .
  My webview loads correctly but 
  When i try to open link inside webview (link inside twitter widget file) , i get the above mentioned error &amp; whole screen turns out blank. Below is the code i am using.</p>
  
  <pre><code>    @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_view_all);
  
      String url = getIntent().getExtras().getString("url");
  
      webProgress = (ProgressBar) mCustomView.findViewById(R.id.webProgress);
      mWebView = (WebView) findViewById(R.id.web_view);
      noDataConnection = (LinearLayout) findViewById(R.id.layout_no_network);
      detector = new ConnectionDetector(this);
      mWebView.getSettings().setDomStorageEnabled(true);
  
      mWebView.setWebViewClient(new WebViewClient() {
  
          @Override
          public boolean shouldOverrideUrlLoading(WebView view, String url) {
              // Log.e(TAG, "shouldOverrideUrlLoading : " + url);
  
              if (!detector.isConnectingToInternet()) {
                  noDataConnection.setVisibility(View.VISIBLE);
                  webProgress.setVisibility(View.GONE);
                  return true;
              } else {
                  noDataConnection.setVisibility(View.GONE);
                  webProgress.setVisibility(View.VISIBLE);
                  return false;
              }
          }
  
          @Override
          public void onReceivedError(WebView view, int errorCode, String description, String failingUrl) {
              super.onReceivedError(view, errorCode, description, failingUrl);
              noDataConnection.setVisibility(View.VISIBLE);
              webProgress.setVisibility(View.GONE);
          }
  
      });
      mWebView.setWebChromeClient(new WebChromeClient() {
  
          @Override
          public void onProgressChanged(WebView view, int newProgress) {
              super.onProgressChanged(view, newProgress);
  
              if (newProgress &gt;= 100) {
                  Log.e(TAG, "onProgressChanged : 100%");
                  webProgress.setVisibility(View.GONE);
              }
          }
      });
      mWebView.getSettings().setJavaScriptEnabled(true);
      mWebView.getSettings().setBuiltInZoomControls(true);
      mWebView.setScrollBarStyle(View.SCROLLBARS_OUTSIDE_OVERLAY);
  
  
      if (!detector.isConnectingToInternet()) {
          noDataConnection.setVisibility(View.VISIBLE);
          webProgress.setVisibility(View.GONE);
      } else {
          noDataConnection.setVisibility(View.GONE);
          webProgress.setVisibility(View.VISIBLE);
          mWebView.loadUrl(url);
      }
  }
  </code></pre>
  
  <p>Any help is appreciated.</p>