HOME 개발팁 안드로이드 통신중 http 접근안될때 모든 접근 허용,일부

프로그램 작업하다 좋은 팁, 정보, 테스트를 기록하는 곳입니다.


android | 안드로이드 통신중 http 접근안될때 모든 접근 허용,일부

페이지 정보

작성자 굿스웹 작성일20-01-16 09:49 조회924회 댓글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 허용한다.

[주소복사] https://www.goodsweb.kr/?u=D41yxPx
SNS 알리기
핀터레스트
텔레그램로
블로그로
카카오스토리
카톡 공유

관련 블로그
로딩중


3명  IP : 18.218.♡.16
001 3.♡.33.87 오류안내 페이지
(/bbs/download.php?bo_table=service&wr_id=45&no=1)
002 3.♡.231.245 SQLSTATE[HY000]: OCIEnvNlsCreate: Check the character set is valid and that PHP has access to Oracle libraries and NLS data - 개발팁
(/bbs/board.php?bo_table=tip&wr_id=339&sca=PHP)
003 34.♡.82.68 CentOs7 + Tomcat + Frontend(vue.js) + Backend(java spring boot) 8080 - 개발팁
(/bbs/board.php?bo_table=tip&wr_id=299)

접속자
  • 오늘 : 163
  • 어제 : 364
  • 최대 : 874
  • 전체 : 401,985

검색로봇(Robots) 최근 방문시간
  • NAVER : 2시간 전
  • GOOGLE : 17시간 전
  • BING : 1일 전
  • DAUM : 5일 전

ETH : 0x8abf3B748ab78828AE07685e4fd53d1a606f18D3



페이스북 네이버 블로그 굿스웹 쇼핑몰 네이버 카페 굿스웹 트위터 굿스웹 티스토리 Google Play