WebView No 'Access-Control-Allow-Origin' header is present [ANDROID]
<p>Bellow is my webView settings:</p>

<pre><code>webView = (WebView) findViewById(R.id.webview);

//      webView.clearHistory();
//      webView.getSettings().setLoadWithOverviewMode(true);
//      webView.getSettings().setUseWideViewPort(true);
//      webView.getSettings().setBuiltInZoomControls(true);
//      webView.getSettings().setDomStorageEnabled(true);
//      if (android.os.Build.VERSION.SDK_INT &gt;= 16)
//      {
//          webView.enablecrossdomain41();
//
//          webView.getSettings().setAllowUniversalAccessFromFileURLs(true);
//          webView.getSettings().setAllowFileAccessFromFileURLs(true);
//
//      }
//      else
//      {
//          webView.enablecrossdomain();
//      }


    if (Build.VERSION.SDK_INT &gt;= 16) {
        webView.getSettings().setAllowUniversalAccessFromFileURLs(true);
        webView.getSettings().setAllowFileAccessFromFileURLs(true);
    }else{
        Class&lt;?&gt; clazz = webView.getSettings().getClass();
        Method method = null;
        try {
            method = clazz.getMethod("setAllowUniversalAccessFromFileURLs", boolean.class);
            if (method != null) {
                method.invoke(webView.getSettings(), true);
            }
            method = clazz.getMethod("setAllowFileAccessFromFileURLs", boolean.class);
            if (method != null) {
                method.invoke(webView.getSettings(), true);
            }
        } catch (NoSuchMethodException | InvocationTargetException | IllegalAccessException e) {
            e.printStackTrace();
        }

    }
    webView.setWebViewClient(new MyWebViewClient());
    webView.getSettings().setLoadWithOverviewMode(true);
    webView.getSettings().setJavaScriptEnabled(true);

//      if (Build.VERSION.SDK_INT &gt;= 11) {
//          webView.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
//  

}

    webView.loadUrl("http://jobs.bdjobs.com/jobdetails.asp?id=675496&amp;fcatId=-1&amp;ln=1");
</code></pre>

<p>Bellow is my <code>MyWebViewClient</code> code:</p>

<pre><code>private class MyWebViewClient extends WebViewClient {
        @Override
        public boolean shouldOverrideUrlLoading(WebView view, WebResourceRequest request) {
            view.loadUrl(request.getUrl().toString());
            return true;
        }

        @Override
        public void onPageFinished(WebView view, String url) {
            progress.setVisibility(View.GONE);
            tv.setVisibility(View.GONE);
            WebActActivity.this.progress.setProgress(100);
            webView.setVisibility(View.VISIBLE);
            super.onPageFinished(view, url);
        }

        @Override
        public void onPageStarted(WebView view, String url, Bitmap favicon) {
            progress.setVisibility(View.VISIBLE);
            tv.setVisibility(View.VISIBLE);
            webView.setVisibility(View.GONE);
            WebActActivity.this.progress.setProgress(0);
            super.onPageStarted(view, url, favicon);
        }

        @Override
        public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) {
            MyLog.e("error1", error.toString());
            handler.proceed();
        }

        @Override
        public void onReceivedError(WebView view, WebResourceRequest request, WebResourceError error) {
            MyLog.e("error2", error.toString());
        }

        @Override
        public void onReceivedError(WebView view, int errorCode, String description, String failingUrl) {
            MyLog.e("error3", description);
            MyLog.e("error3", failingUrl);
        }

        @Override
        public void onTooManyRedirects(WebView view, Message cancelMsg, Message continueMsg) {
            MyLog.e("error4", cancelMsg.toString());
            MyLog.e("error4", continueMsg.toString());
        }
    }
</code></pre>

<p>But nothing is showing on webview. I have checked that the link i am trying to load is working perfectly on browser.</p>

<p>the console says that:</p>

<pre><code>I/ActivityManager: Displayed com.pipilika.jobsearch/.activity.WebActActivity: +233ms
W/cr_BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid: 25726
I/chromium: [INFO:CONSOLE(0)] "Access to Font at 'http://www.bdjobs.com/errormessages/404.htm' from origin 'http://www.bdjobs.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://jobs.bdjobs.com' is therefore not allowed access.", source: http://jobs.bdjobs.com/jobdetails.asp?id=675496&amp;fcatId=-1&amp;ln=1 (0)
E/chromium: [ERROR:interface_registry.cc(99)] Failed to locate a binder for interface: autofill::mojom::AutofillDriver
V/FA: Inactivity, disconnecting from the service
I/chromium: [INFO:CONSOLE(0)] "XMLHttpRequest cannot load https://fonts.googleapis.com/css?family=Montserrat:400,700. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://jobs.bdjobs.com' is therefore not allowed access. The response had HTTP status code 405.", source: http://jobs.bdjobs.com/jobdetails.asp?id=675496&amp;fcatId=-1&amp;ln=1 (0)
I/chromium: [INFO:CONSOLE(0)] "XMLHttpRequest cannot load https://fonts.googleapis.com/css?family=Open+Sans:400,600. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://jobs.bdjobs.com' is therefore not allowed access. The response had HTTP status code 405.", source: http://jobs.bdjobs.com/jobdetails.asp?id=675496&amp;fcatId=-1&amp;ln=1 (0)
</code></pre>

<p>I have also tried this answer: <a href="https://stackoverflow.com/questions/22479677/android-webview-access-control-allow-origin#22504436">android webview - Access-Control-Allow-Origin</a></p>

<p>But it is not working either. what can I do further?  </p>