This is an automated email from the ASF dual-hosted git repository.
spacewander pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git
The following commit(s) were added to refs/heads/master by this push:
new 09bf229 docs: add a space so that the example link is displayed
correctly (#2837)
09bf229 is described below
commit 09bf229d91e1b9b94b33d978a2682ed662a87bfc
Author: idbeta <[email protected]>
AuthorDate: Wed Nov 25 09:37:37 2020 +0800
docs: add a space so that the example link is displayed correctly (#2837)
---
doc/zh-cn/plugins/cors.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/doc/zh-cn/plugins/cors.md b/doc/zh-cn/plugins/cors.md
index c7a1325..394e5cd 100644
--- a/doc/zh-cn/plugins/cors.md
+++ b/doc/zh-cn/plugins/cors.md
@@ -35,7 +35,7 @@
| 名称 | 类型 | 可选项 | 默认值 | 有效值 | 描述
|
| ---------------- | ------- | ------ | ------ | ------ |
------------------------------------------------------------ |
-| allow_origins | string | 可选 | "*" | | 允许跨域访问的
Origin,格式如:`scheme`://`host`:`port`,比如: https://somehost.com:8081。多个值使用 `,`
分割,`allow_credential` 为 `false` 时可以使用 `*` 来表示所有 Origin 均允许通过。你也可以在启用了
`allow_credential` 后使用 `**` 强制允许所有 Origin 都通过,但请注意这样存在安全隐患。 |
+| allow_origins | string | 可选 | "*" | | 允许跨域访问的
Origin,格式如:`scheme`://`host`:`port`,比如: https://somehost.com:8081 。多个值使用 `,`
分割,`allow_credential` 为 `false` 时可以使用 `*` 来表示所有 Origin 均允许通过。你也可以在启用了
`allow_credential` 后使用 `**` 强制允许所有 Origin 都通过,但请注意这样存在安全隐患。 |
| allow_methods | string | 可选 | "*" | | 允许跨域访问的 Method,比如:
`GET`,`POST`等。多个值使用 `,` 分割,`allow_credential` 为 `false` 时可以使用 `*` 来表示所有 Origin
均允许通过。你也可以在启用了 `allow_credential` 后使用 `**` 强制允许所有 Method 都通过,但请注意这样存在安全隐患。 |
| allow_headers | string | 可选 | "*" | | 允许跨域访问时请求方携带哪些非
`CORS规范` 以外的 Header, 多个值使用 `,` 分割,`allow_credential` 为 `false` 时可以使用 `*` 来表示所 有
Header 均允许通过。你也可以在启用了 `allow_credential` 后使用 `**` 强制允许所有 Method
都通过,但请注意这样存在安全隐患。 |
| expose_headers | string | 可选 | "*" | | 允许跨域访问时响应方携带哪些非
`CORS规范` 以外的 Header, 多个值使用 `,` 分割。 |