From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../glossary/simple_response_header/index.html | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 files/zh-cn/glossary/simple_response_header/index.html (limited to 'files/zh-cn/glossary/simple_response_header') diff --git a/files/zh-cn/glossary/simple_response_header/index.html b/files/zh-cn/glossary/simple_response_header/index.html new file mode 100644 index 0000000000..b916ab3c45 --- /dev/null +++ b/files/zh-cn/glossary/simple_response_header/index.html @@ -0,0 +1,39 @@ +--- +title: Simple response header +slug: Glossary/Simple_response_header +tags: + - Simple response header +translation_of: Glossary/Simple_response_header +--- +

一个简单的响应头(或CORS安全列表的响应头)是一个 HTTP 头 ,它是以下之一:

+ + + +

These headers will not be filtered when the response is filtered by CORS, they are considered as safe (as the headers listed in {{HTTPHeader("Access-Control-Expose-Headers")}}.

+ +

Examples

+ +

Extending the safelist

+ +

You can extend the list of CORS-safelisted response headers by using the {{HTTPHeader("Access-Control-Expose-Headers")}} header:

+ +
Access-Control-Expose-Headers: X-Custom-Header, Content-Length
+ +

Learn more

+ + -- cgit v1.2.3-54-g00ecf