File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
java/ql/src/Security/CWE/CWE-200 Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 21
21
<li ><code >setAllowFileAccessFromFileURLs</code ></li >
22
22
<li ><code >setAllowUniversalAccessFromFileURLs</code ></li >
23
23
</ul >
24
+
25
+ <p >If your application requires access to the file system, it is best to
26
+ avoid using <code >file://</code > urls, and instead use an alternative that
27
+ allows loading files via https, such
28
+ as <code >androidx.webkit.WebViewAssetLoader</code >.</p >
24
29
</recommendation >
25
30
26
31
<example >
45
50
<li >
46
51
Android documentation: <a href =" https://developer.android.com/reference/android/webkit/WebSettings#setAllowUniversalAccessFromFileURLs(boolean)" >WebSettings.setAllowUniversalAccessFromFileURLs</a >.
47
52
</li >
53
+ <li >
54
+ Android documentation: <a href =" https://developer.android.com/reference/androidx/webkit/WebViewAssetLoader" >WebViewAssetLoader</a >.
55
+ </li >
48
56
</references >
49
57
50
58
</qhelp >
You can’t perform that action at this time.
0 commit comments