Add setAllowFileAccessFromFileURLs for better security
This commit is contained in:
parent
541b5c0672
commit
ffb1b8dc0d
1 changed files with 1 additions and 0 deletions
|
|
@ -64,6 +64,7 @@ class MainActivity : AppCompatActivity() {
|
||||||
setSupportZoom(false)
|
setSupportZoom(false)
|
||||||
loadWithOverviewMode = true
|
loadWithOverviewMode = true
|
||||||
useWideViewPort = true
|
useWideViewPort = true
|
||||||
|
setAllowFileAccessFromFileURLs(false)
|
||||||
}
|
}
|
||||||
|
|
||||||
webView.isFocusable = true
|
webView.isFocusable = true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue