일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
- 어드벤스
- 야생의숨결
- 다이빙
- PostgreSQL
- 공략
- hybride
- 도커
- 뱀파이어서바이벌
- 게임
- JS
- 세부
- Angular
- 오픈워터
- window
- psql
- Linux
- 엘든링
- guide
- window10
- 젤다의전설
- WebView
- 씨홀스
- Front-end
- 스쿠버다이빙
- 개발툴
- 취미
- ubuntu
- docker
- 여행
- JavaScript
- Today
- Total
Rianshin
[Front-End] PhoneGap API Documentation 본문
This documentation is outdated. Please read the latest PhoneGap Docs and Apache Cordova Docs.
Domain Whitelist Guide
Overview
Domain whitelisting in Apache Cordova is a security model that controls access to outside domains, such as http://google.com. The default security policy is to block all network access. The application developer can then declare access to specific network domains and subdomains.
Specification
Domain whitelisting lays the ground work for the W3C Widget Access* specification. In the Widget Access specification, the <access> element is used to declare access to specific network domains. In the future, Apache Cordova will abstract the platform whitelisting implementations to the W3C Widget Access specification. However, for now each platform must implement it's own domain whitelisting.
Syntax
Access to google.com*:
Access to the secure google.com* (https://):
Access to the subdomain maps.google.com*:
Access to all the subdomains on google.com* (e.g. mail.google.com* and docs.google.com*):
http://*.google.com
Access to all domains (e.g. google.com* and developer.mozilla.org*):
*
Android
Details
The whitelisting rules are found in res/xml/cordova.xml and declared with the element <access origin="..." />.
Android has full support for the whitelisting syntax.
Syntax
Access to google.com*:
Bada
Domain whitelisting is unsupported on Bada. By default, all domains are accessible.
BlackBerry
Details
The whitelisting rules are found in www/config.xml and declared with the element <access uri="..." />.
For a complete reference, see the BlackBerry WebWorks Access Element documentation*.
Syntax
Access to google.com*:
Access to maps.google.com*:
Access to all the subdomains on google.com*:
Access to all domains, including file:// protocol:
<access uri="*" subdomains="true" />
iOS
Details
- Open Cordova.plist.
- In Xcode, it is found at AppName/Supporting Files/Cordova.plist
- In the directory, it is found at AppName/Cordova.plist
- Add a new String value under the ExternalHosts key.
- We recommend using Xcode to avoid editing raw XML.
Domain protocols (e.g. http:// and https://) are not supported by iOS.
Syntax
Access to google.com* and the secure google.com* (https://):
google.com
Access to the subdomain maps.google.com*:
maps.google.com
Access to all the subdomains on google.com* (e.g. mail.google.com* and docs.google.com*):
*.google.com
Access to all domains (e.g. google.com* and developer.mozilla.org*):
*
Wildcards on iOS (``) are more flexible than the W3C Widget Access* specification.
Access to all subdomains and TLDs (.com, .net, etc):
*.google.*
Symbian
Domain whitelisting is unsupported on Symbian. By default, all domains are accessible.
webOS
Domain whitelisting is unsupported on webOS. By default, all domains are accessible.
Windows Phone
Domain whitelisting is unsupported on Windows Phone. By default, all domains are accessible.
'Develop > Front-End' 카테고리의 다른 글
[vue.js] style bind.. (0) | 2020.11.25 |
---|---|
[Angular] 버전 11 릴리즈 노트 (0) | 2020.11.20 |
[Front-End]코르도바 CLI 툴 사용하기 (0) | 2020.11.10 |
[Front-End]명령줄 인터페이스 - Apache Cordova (0) | 2020.11.10 |
[Front-End]Cordova Basic (0) | 2020.11.10 |