openEventsPlatformApp/plugins/cordova-plugin-whitelist/doc/ko/README.md
plugins/cordova-plugin-whitelist/doc/ko/README.mdRaw
1<!--
2# license: Licensed to the Apache Software Foundation (ASF) under one
3# or more contributor license agreements. See the NOTICE file
4# distributed with this work for additional information
5# regarding copyright ownership. The ASF licenses this file
6# to you under the Apache License, Version 2.0 (the
7# "License"); you may not use this file except in compliance
8# with the License. You may obtain a copy of the License at
9#
10# http://www.apache.org/licenses/LICENSE-2.0
11#
12# Unless required by applicable law or agreed to in writing,
13# software distributed under the License is distributed on an
14# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15# KIND, either express or implied. See the License for the
16# specific language governing permissions and limitations
17# under the License.
18-->
19
20# cordova-plugin-whitelist
21
22이 플러그인 구현 코르도바 4.0 응용 프로그램 webview를 탐색에 대 한 허용 정책
23
24## 지원된 코르도바 플랫폼
25
26 * 안 드 로이드 4.0.0 이상
27 * iOS 4.0.0 이상
28
29## 탐색 허용
30
31WebView 자체가 탐색할 수 있는 Url을 제어 합니다. 최상위 탐색에만 적용 됩니다.
32
33단점: 안 드 로이드에도 적용 됩니다 iframe에 대 한 비-프로토콜인 계획.
34
35기본적으로 탐색 `file://` Url에만 사용할 수 있습니다. 다른 다른 Url을 허용 하려면 `config.xml`에 `< allow-navigation >` 태그를 추가 해야 합니다.
36
37 <!-- Allow links to example.com -->
38 <allow-navigation href="http://example.com/*" />
39
40 <!-- Wildcards are allowed for the protocol, as a prefix
41 to the host, or as a suffix to the path -->
42 <allow-navigation href="*://*.example.com/*" />
43
44 <!-- A wildcard can be used to whitelist the entire network,
45 over HTTP and HTTPS.
46 *NOT RECOMMENDED* -->
47 <allow-navigation href="*" />
48
49 <!-- The above is equivalent to these three declarations -->
50 <allow-navigation href="http://*/*" />
51 <allow-navigation href="https://*/*" />
52 <allow-navigation href="data:*" />
53
54
55## 의도 허용
56
57App 시스템 열을 게 허용 되는 Url을 제어 합니다. 기본적으로 외부 Url은 사용할 수 있습니다.
58
59안 드 로이드에이 형식의 BROWSEABLE 의도 보내는 것 같습니다.
60
61이 허용 된 플러그인, 하이퍼링크 및 `window.open ()` 호출에 적용 되지 않습니다..
62
63`Config.xml`에이 같은 `< allow-intent >` 태그를 추가 합니다.
64
65 <!-- Allow links to web pages to open in a browser -->
66 <allow-intent href="http://*/*" />
67 <allow-intent href="https://*/*" />
68
69 <!-- Allow links to example.com to open in a browser -->
70 <allow-intent href="http://example.com/*" />
71
72 <!-- Wildcards are allowed for the protocol, as a prefix
73 to the host, or as a suffix to the path -->
74 <allow-intent href="*://*.example.com/*" />
75
76 <!-- Allow SMS links to open messaging app -->
77 <allow-intent href="sms:*" />
78
79 <!-- Allow tel: links to open the dialer -->
80 <allow-intent href="tel:*" />
81
82 <!-- Allow geo: links to open maps -->
83 <allow-intent href="geo:*" />
84
85 <!-- Allow all unrecognized URLs to open installed apps
86 *NOT RECOMMENDED* -->
87 <allow-intent href="*" />
88
89
90## 네트워크 요청 허용
91
92요청을 네트워크 컨트롤 (이미지, XHRs, 등) (코르도바 네이티브 후크)를 통해 할 수 있습니다.
93
94참고: 당신이 사용 콘텐츠 보안 정책 (아래 참조), 더 안전한 것이 좋습니다. 이 허용은 CSP를 지원 하지 않는 webviews에 대 한 역사적.
95
96`Config.xml`에이 같은 `< access >` 태그를 추가 합니다.
97
98 <!-- Allow images, xhrs, etc. to google.com -->
99 <access origin="http://google.com" />
100 <access origin="https://google.com" />
101
102 <!-- Access to the subdomain maps.google.com -->
103 <access origin="http://maps.google.com" />
104
105 <!-- Access to all the subdomains on google.com -->
106 <access origin="http://*.google.com" />
107
108 <!-- Enable requests to content: URLs -->
109 <access origin="content:///*" />
110
111 <!-- Don't block any requests -->
112 <access origin="*" />
113
114
115어떤 `< access >` 태그 없이 요청 `file://` Url 사용할 수 있습니다. 그러나 기본 코르도바 응용 프로그램을 포함 하는, `< access origin="*" >` 기본적으로.
116
117특질: 안 드 로이드 또한 수 있습니다 요청을 https://ssl.gstatic.com/accessibility/javascript/android/ 기본적으로 필요 제대로 작동 하려면 의견 이므로.
118
119### 콘텐츠 보안 정책
120
121요청을 네트워크 컨트롤 (이미지, XHRs, 등) (webview 직접)를 통해 할 수 있습니다.
122
123안 드 로이드와 iOS에 네트워크 요청 허용 (위 참조)는 모든 종류의 요청 (예: `< 비디오 >` & WebSockets 차단 되지 않습니다)를 필터링 할 수 없습니다. 그래서, 허용, 뿐만 아니라 귀하의 모든 페이지에 [콘텐츠 보안 정책](http://content-security-policy.com/) `< meta >` 태그를 사용 해야 합니다.
124
125안 드 로이드, 시스템 webview 내에서 CSP에 대 한 지원을 KitKat 시작 (하지만 횡단 보도 WebView를 사용 하 여 모든 버전에서 사용할 수).
126
127다음은 `.html` 페이지에 대 한 몇 가지 예제 CSP 선언입니다.
128
129 <!-- Good default declaration:
130 * gap: is required only on iOS (when using UIWebView) and is needed for JS->native communication
131 * https://ssl.gstatic.com is required only on Android and is needed for TalkBack to function properly
132 * Disables use of eval() and inline scripts in order to mitigate risk of XSS vulnerabilities. To change this:
133 * Enable inline JS: add 'unsafe-inline' to default-src
134 * Enable eval(): add 'unsafe-eval' to default-src
135 -->
136 <meta http-equiv="Content-Security-Policy" content="default-src 'self' data: gap: https://ssl.gstatic.com; style-src 'self' 'unsafe-inline'; media-src *">
137
138 <!-- Allow requests to foo.com -->
139 <meta http-equiv="Content-Security-Policy" content="default-src 'self' foo.com">
140
141 <!-- Enable all requests, inline styles, and eval() -->
142 <meta http-equiv="Content-Security-Policy" content="default-src *; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'">
143
144 <!-- Allow XHRs via https only -->
145 <meta http-equiv="Content-Security-Policy" content="default-src 'self' https:">
146
147 <!-- Allow iframe to https://cordova.apache.org/ -->
148 <meta http-equiv="Content-Security-Policy" content="default-src 'self'; frame-src 'self' https://cordova.apache.org">