From 08a04d85393a0bb5721a17328df62c4915c487c5 Mon Sep 17 00:00:00 2001 From: Florian Merz Date: Fri, 5 Feb 2021 18:52:37 +0100 Subject: fix some macros for zh-cn --- .../index.html" | 6 +++--- .../zh-cn/web/http/headers/access-control-allow-headers/index.html | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'files/zh-cn/web/http') diff --git "a/files/zh-cn/web/http/cors/errors/cors\351\224\231\350\257\257\345\205\201\350\256\270\345\207\255\350\257\201/index.html" "b/files/zh-cn/web/http/cors/errors/cors\351\224\231\350\257\257\345\205\201\350\256\270\345\207\255\350\257\201/index.html" index 9ba1f6b468..8a8f8d0074 100644 --- "a/files/zh-cn/web/http/cors/errors/cors\351\224\231\350\257\257\345\205\201\350\256\270\345\207\255\350\257\201/index.html" +++ "b/files/zh-cn/web/http/cors/errors/cors\351\224\231\350\257\257\345\205\201\350\256\270\345\207\255\350\257\201/index.html" @@ -16,9 +16,9 @@ translation_of: Web/HTTP/CORS/Errors/CORSMIssingAllowCredentials

想要在客户端解决此问题,请修改代码以不请求使用凭据:

想要通过更改服务器的配置来消除此错误,请调整服务器的配置以将Access-Control-Allow-Credentials标头的值设置为true。

diff --git a/files/zh-cn/web/http/headers/access-control-allow-headers/index.html b/files/zh-cn/web/http/headers/access-control-allow-headers/index.html index d6a3737780..b8b9214a39 100644 --- a/files/zh-cn/web/http/headers/access-control-allow-headers/index.html +++ b/files/zh-cn/web/http/headers/access-control-allow-headers/index.html @@ -46,7 +46,7 @@ Access-Control-Allow-Headers: *

* (wildcard)

-

对于没有凭据的请求(没有HTTP cookie或HTTP认证信息的请求),值“ *”仅作为特殊的通配符值。 在具有凭据的请求中,它被视为没有特殊语义的文字标头名称“ *”。 请注意,{{HTTPHeader(“ Authorization”)}}标头不能使用通配符,并且始终需要明确列出。

+

对于没有凭据的请求(没有HTTP cookie或HTTP认证信息的请求),值“ *”仅作为特殊的通配符值。 在具有凭据的请求中,它被视为没有特殊语义的文字标头名称“ *”。 请注意,{{HTTPHeader("Authorization")}}标头不能使用通配符,并且始终需要明确列出。

示例

-- cgit v1.2.3-54-g00ecf