/**
* Enables or disables file access within WebView.
* Note that this enables or disables file system access only. Assets and resources
* are still accessible using file:///android_asset and file:///android_res.
* <p class="note">
* <b>Note:</b> Apps should not open {@code file://} URLs from any external source in
* WebView, don't enable this if your app accepts arbitrary URLs from external sources.
* It's recommended to always use
* <a href="{@docRoot}reference/androidx/webkit/WebViewAssetLoader">
* androidx.webkit.WebViewAssetLoader</a> to access files including assets and resources over
* {@code http(s)://} schemes, instead of {@code file://} URLs. To prevent possible security
* issues targeting {@link android.os.Build.VERSION_CODES#Q} and earlier, you should explicitly
* set this value to {@code false}.
* <p>
* The default value is {@code true} for apps targeting
* {@link android.os.Build.VERSION_CODES#Q} and below, and {@code false} when targeting
* {@link android.os.Build.VERSION_CODES#R} and above.
*/
public abstract void setAllowFileAccess(boolean allow);
'Platform > Android' 카테고리의 다른 글
[build.gradle] 변수 추가해서 Java 에서 사용하기 (0) | 2021.12.24 |
---|---|
[gradle] BuildConfig 변수 생성/사용하기 (0) | 2021.12.10 |
[Okhttp] timeout 설정 (0) | 2021.10.08 |
[TroubleShooting] androidx.constraintlayout.widget.Group 사용 시, visibility 적용 안될 때 (2) | 2021.08.30 |
[WebView] Android SDK 버전별 WebView 버전 확인 (0) | 2021.07.27 |