How to make WebView open all url without cors?

android

#1

How to make WebView open all url without cors? I am trying to open an https url inside WebView.

However I keep getting the error No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin is therefore not allowed access." How can I override this setting?

I tried (loaded)=“onLoaded($event)” on Webview event and not working

let settings = this.webViewRef.nativeElement.android.getSettings()
        settings.setLoadWithOverviewMode(true);
        settings.setUseWideViewPort(true);
        settings.setJavaScriptEnabled(true);
        settings.setAllowFileAccess(true);
        settings.setAllowContentAccess(true);
        settings.setAllowFileAccessFromFileURLs(true);
        settings.setAllowUniversalAccessFromFileURLs(true);

#2

Did you try some additional settings recommended in this stack overflow thread?