From f6911720d9a0219d009e0502c2815a7be06fdbaf Mon Sep 17 00:00:00 2001 From: rinlang <42631858+rinlang@users.noreply.github.com> Date: Fri, 24 Dec 2021 02:51:30 +0800 Subject: fix:files/zh-cn/web/html/element/audio/index.html (#3431) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit line 44:不携带 -> 携带 --- files/zh-cn/web/html/element/audio/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'files/zh-cn/web/html/element/audio') diff --git a/files/zh-cn/web/html/element/audio/index.html b/files/zh-cn/web/html/element/audio/index.html index a2b7a3a241..22fbb99308 100644 --- a/files/zh-cn/web/html/element/audio/index.html +++ b/files/zh-cn/web/html/element/audio/index.html @@ -38,7 +38,7 @@ translation_of: Web/HTML/Element/audio
anonymous
在发送跨域请求时不携带验证信息。换句话说,浏览器在发送Origin: HTTP 请求首部时将不携带 cookie、 X.509 安全令牌、也不会执行任何 HTTP 基本认证。如果服务器没有给予源站信任(也就是说没有设置 Access-Control-Allow-Origin: 响应首部),那么图片就被认为是污染的,它就会被限制使用。
use-credentials
-
在发送跨域请求时不携带验证信息。换句话说,在发送Origin: HTTP 请求首部时将携带 cookie、安全令牌、并且执行 HTTP 基本认证。如果服务器没有给予源站信任(通过设置Access-Control-Allow-Credentials: 响应首部)那么图片就被认为是污染的,它就会被限制使用。
+
在发送跨域请求时携带验证信息。换句话说,在发送Origin: HTTP 请求首部时将携带 cookie、安全令牌、并且执行 HTTP 基本认证。如果服务器没有给予源站信任(通过设置Access-Control-Allow-Credentials: 响应首部)那么图片就被认为是污染的,它就会被限制使用。
在未指定时,资源将不通过 CORS 请求来获取(也就是不发送 Origin: 请求首部),以保护 {{HTMLElement('canvas')}}  元素中未污染的内容。如果验证失败,它会表现的好像 anonymous 选项是选中的。查看 CORS settings attributes 来获取更多信息。
{{htmlattrdef("currentTime")}}
-- cgit v1.2.3-54-g00ecf