android | 안드로이드 통신중 http 접근안될때 모든 접근 허용,일부
페이지 정보
작성자 굿스웹 작성일20-01-16 09:49 조회931회 댓글0건관련링크
본문
AndroidManifest.xml
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme"
android:usesCleartextTraffic="true">
[모두 허용]
android:usesCleartextTraffic="true"
true 설정하면 모든 http 주소에 접근을 허용한다.
[일부허용]
/res/xml/network_security_config.xml
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<domain-config cleartextTrafficPermitted="false">
<domain includeSubdomains="true">goodsweb.kr</domain>
</domain-config>
</network-security-config>
AndroidManifest.xml
<application android:networkSecurityConfig="@xml/network_security_config"
저장된 리스트 network_security_config 허용한다.
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme"
android:usesCleartextTraffic="true">
[모두 허용]
android:usesCleartextTraffic="true"
true 설정하면 모든 http 주소에 접근을 허용한다.
[일부허용]
/res/xml/network_security_config.xml
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<domain-config cleartextTrafficPermitted="false">
<domain includeSubdomains="true">goodsweb.kr</domain>
</domain-config>
</network-security-config>
AndroidManifest.xml
<application android:networkSecurityConfig="@xml/network_security_config"
저장된 리스트 network_security_config 허용한다.
[주소복사] https://www.goodsweb.kr/?u=D41B4C40
SNS 알리기
핀터레스트
텔레그램로
블로그로
페이스북
트위터
카카오스토리
카톡 공유
관련 블로그
로딩중