Java 如何在Android WebView中禁用内容安全策略?

Java 如何在Android WebView中禁用内容安全策略?,java,android,android-studio,webview,android-webview,Java,Android,Android Studio,Webview,Android Webview,我正在尝试在WebView中加载TikTok网站。但我不能。在logcat中,我得到了以下错误: "[Report Only] Refused to load the script 'https://sf16-scmcdn-va.ibytedtos.com/goofy/slardar/fe/sdk/plugins/monitors.3.5.4.maliva.js' because it violates the following Content Security Policy dir

我正在尝试在WebView中加载TikTok网站。但我不能。在logcat中,我得到了以下错误:

"[Report Only] Refused to load the script 'https://sf16-scmcdn-va.ibytedtos.com/goofy/slardar/fe/sdk/plugins/monitors.3.5.4.maliva.js' because it violates the following Content Security Policy directive: "script-src 'self' blob: data: 'unsafe-inline' 'unsafe-eval' polyfill.io *.kakao.com *.cdn-apple.com *.tiktokcdn.com *.byteoversea.com *.tiktok.com".
", source: https://www.tiktok.com/ (0)
似乎铬阻止了一些javascript文件,这就是为什么我得到了白色屏幕。我怎样才能禁用或解决它

我的网络视图:

    webView.getSettings().setJavaScriptEnabled(true);
    webView.setWebViewClient(new WebViewWebClient());
    webView.getSettings().setSaveFormData(false);
    webView.getSettings().setJavaScriptEnabled(true);
    webView.getSettings().setPluginState(WebSettings.PluginState.ON);
    webView.getSettings().setJavaScriptCanOpenWindowsAutomatically(true);
    webView.getSettings().setUserAgentString(System.getProperty("http.agent"));
    webView.loadUrl("https://www.tiktok.com/");
修好了。谢谢大家

webView.getSettings().setDomStorageEnabled(true);