This is an automated email from the ASF dual-hosted git repository. github-bot pushed a commit to branch asf-site in repository https://gitbox.apache.org/repos/asf/apisix-website.git
The following commit(s) were added to refs/heads/asf-site by this push: new 1a931a7 Deploy to GitHub pages 1a931a7 is described below commit 1a931a7ee451e6aebde1f734608b7cd7cc45e737 Author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> AuthorDate: Wed Nov 25 09:04:15 2020 +0000 Deploy to GitHub pages --- apisix/zh-cn/plugins/cors.html | 2 +- apisix/zh-cn/plugins/cors/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apisix/zh-cn/plugins/cors.html b/apisix/zh-cn/plugins/cors.html index b242da6..54440ca 100644 --- a/apisix/zh-cn/plugins/cors.html +++ b/apisix/zh-cn/plugins/cors.html @@ -41,7 +41,7 @@ <tr><th>名称</th><th>类型</th><th>可选项</th><th>默认值</th><th>有效值</th><th>描述</th></tr> </thead> <tbody> -<tr><td>allow_origins</td><td>string</td><td>可选</td><td>"*"</td><td></td><td>允许跨域访问的 Origin,格式如:<code>scheme</code>://<code>host</code>:<code>port</code>,比如: <a href="https://somehost.com:8081">https://somehost.com:8081</a>。多个值使用 <code>,</code> 分割,<code>allow_credential</code> 为 <code>false</code> 时可以使用 <code>*</code> 来表示所有 Origin 均允许通过。你也可以在启用了 <code>allow_credential</code> 后使用 <code>**</code> 强制允许所有 Origin 都通过,但请注意这样存在安全隐患。</td></tr> +<tr><td>allow_origins</td><td>string</td><td>可选</td><td>"*"</td><td></td><td>允许跨域访问的 Origin,格式如:<code>scheme</code>://<code>host</code>:<code>port</code>,比如: <a href="https://somehost.com:8081">https://somehost.com:8081</a> 。多个值使用 <code>,</code> 分割,<code>allow_credential</code> 为 <code>false</code> 时可以使用 <code>*</code> 来表示所有 Origin 均允许通过。你也可以在启用了 <code>allow_credential</code> 后使用 <code>**</code> 强制允许所有 Origin 都通过,但请注意这样存在安全隐患。</td></tr> <tr><td>allow_methods</td><td>string</td><td>可选</td><td>"*"</td><td></td><td>允许跨域访问的 Method,比如: <code>GET</code>,<code>POST</code>等。多个值使用 <code>,</code> 分割,<code>allow_credential</code> 为 <code>false</code> 时可以使用 <code>*</code> 来表示所有 Origin 均允许通过。你也可以在启用了 <code>allow_credential</code> 后使用 <code>**</code> 强制允许所有 Method 都通过,但请注意这样存在安全隐患。</td></tr> <tr><td>allow_headers</td><td>string</td><td>可选</td><td>"*"</td><td></td><td>允许跨域访问时请求方携带哪些非 <code>CORS规范</code> 以外的 Header, 多个值使用 <code>,</code> 分割,<code>allow_credential</code> 为 <code>false</code> 时可以使用 <code>*</code> 来表示所 有 Header 均允许通过。你也可以在启用了 <code>allow_credential</code> 后使用 <code>**</code> 强制允许所有 Method 都通过,但请注意这样存在安全隐患。</td></tr> <tr><td>expose_headers</td><td>string</td><td>可选</td><td>"*"</td><td></td><td>允许跨域访问时响应方携带哪些非 <code>CORS规范</code> 以外的 Header, 多个值使用 <code>,</code> 分割。</td></tr> diff --git a/apisix/zh-cn/plugins/cors/index.html b/apisix/zh-cn/plugins/cors/index.html index b242da6..54440ca 100644 --- a/apisix/zh-cn/plugins/cors/index.html +++ b/apisix/zh-cn/plugins/cors/index.html @@ -41,7 +41,7 @@ <tr><th>名称</th><th>类型</th><th>可选项</th><th>默认值</th><th>有效值</th><th>描述</th></tr> </thead> <tbody> -<tr><td>allow_origins</td><td>string</td><td>可选</td><td>"*"</td><td></td><td>允许跨域访问的 Origin,格式如:<code>scheme</code>://<code>host</code>:<code>port</code>,比如: <a href="https://somehost.com:8081">https://somehost.com:8081</a>。多个值使用 <code>,</code> 分割,<code>allow_credential</code> 为 <code>false</code> 时可以使用 <code>*</code> 来表示所有 Origin 均允许通过。你也可以在启用了 <code>allow_credential</code> 后使用 <code>**</code> 强制允许所有 Origin 都通过,但请注意这样存在安全隐患。</td></tr> +<tr><td>allow_origins</td><td>string</td><td>可选</td><td>"*"</td><td></td><td>允许跨域访问的 Origin,格式如:<code>scheme</code>://<code>host</code>:<code>port</code>,比如: <a href="https://somehost.com:8081">https://somehost.com:8081</a> 。多个值使用 <code>,</code> 分割,<code>allow_credential</code> 为 <code>false</code> 时可以使用 <code>*</code> 来表示所有 Origin 均允许通过。你也可以在启用了 <code>allow_credential</code> 后使用 <code>**</code> 强制允许所有 Origin 都通过,但请注意这样存在安全隐患。</td></tr> <tr><td>allow_methods</td><td>string</td><td>可选</td><td>"*"</td><td></td><td>允许跨域访问的 Method,比如: <code>GET</code>,<code>POST</code>等。多个值使用 <code>,</code> 分割,<code>allow_credential</code> 为 <code>false</code> 时可以使用 <code>*</code> 来表示所有 Origin 均允许通过。你也可以在启用了 <code>allow_credential</code> 后使用 <code>**</code> 强制允许所有 Method 都通过,但请注意这样存在安全隐患。</td></tr> <tr><td>allow_headers</td><td>string</td><td>可选</td><td>"*"</td><td></td><td>允许跨域访问时请求方携带哪些非 <code>CORS规范</code> 以外的 Header, 多个值使用 <code>,</code> 分割,<code>allow_credential</code> 为 <code>false</code> 时可以使用 <code>*</code> 来表示所 有 Header 均允许通过。你也可以在启用了 <code>allow_credential</code> 后使用 <code>**</code> 强制允许所有 Method 都通过,但请注意这样存在安全隐患。</td></tr> <tr><td>expose_headers</td><td>string</td><td>可选</td><td>"*"</td><td></td><td>允许跨域访问时响应方携带哪些非 <code>CORS规范</code> 以外的 Header, 多个值使用 <code>,</code> 分割。</td></tr>