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

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


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 허용한다.

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

관련 블로그
로딩중


6명  IP : 18.218.♡.81
001 3.♡.220.101 php 스쿨 - 시작페이지
(/bbs/board.php?bo_table=startpage&wr_id=14)
002 52.♡.240.171 아프리카TV - 시작페이지
(/bbs/board.php?bo_table=startpage&wr_id=11)
003 23.♡.35.162 팟빵 - 시작페이지
(/bbs/board.php?bo_table=startpage&wr_id=10)
004 34.♡.82.70 서버 구성도
(/bbs/content.php?co_id=Network)
005 3.♡.217.228 SECOM 세콤 출퇴근관리 쿼리 - 개발팁
(/bbs/board.php?bo_table=tip&wr_id=225)
006 222.♡.104.207 굿스웹 - 홈페이지 유지보수 관리
(/)

접속자
  • 오늘 : 192
  • 어제 : 334
  • 최대 : 874
  • 전체 : 406,418

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

ETH : 0x8abf3B748ab78828AE07685e4fd53d1a606f18D3



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