Add setAllowFileAccessFromFileURLs for better security

This commit is contained in:
Alex Abudaev 2026-04-05 17:58:29 +08:00
parent 541b5c0672
commit ffb1b8dc0d

View file

@ -64,6 +64,7 @@ class MainActivity : AppCompatActivity() {
setSupportZoom(false)
loadWithOverviewMode = true
useWideViewPort = true
setAllowFileAccessFromFileURLs(false)
}
webView.isFocusable = true