Skip to content

Conversation

jaystone776
Copy link
Contributor

As title

@codecov
Copy link

codecov bot commented Aug 31, 2021

Codecov Report

Merging #3796 (9ea7301) into master (1760da0) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##            master     #3796   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          410       410           
  Lines        10281     10281           
=========================================
  Hits         10281     10281           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1760da0...9ea7301. Read the comment docs.

@github-actions
Copy link
Contributor

📝 Docs preview for commit f724a01 at: https://612def02292ce7c1a7e89b61--fastapi.netlify.app


注意,自定义专用响应头可以添加<a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers" class="external-link" target="_blank">前缀 'X-'</a>。

但如果需要浏览器中的客户端查看自定义响应头,则要在 CORS 配置中(详见 [CORS(跨域资源共享)](../tutorial/cors.md){.internal-link target=_blank})使用 <a href="https://www.starlette.io/middleware/#corsmiddleware" class="external-link" target="_blank">Starlette 官档 - CORS</a> 中的 `expose_headers` 参数。
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
但如果需要浏览器中的客户端查看自定义响应头,则要在 CORS 配置中(详见 [CORS(跨域资源共享)](../tutorial/cors.md){.internal-link target=_blank})使用 <a href="https://www.starlette.io/middleware/#corsmiddleware" class="external-link" target="_blank">Starlette 官档 - CORS</a> 中的 `expose_headers` 参数。
但如果需要浏览器中的客户端查看自定义响应头,则要在 CORS 配置中(详见 [CORS(跨域资源共享)](../tutorial/cors.md){.internal-link target=_blank})使用 <a href="https://www.starlette.io/middleware/#corsmiddleware" class="external-link" target="_blank">Starlette 官方文档 - CORS</a> 中的 `expose_headers` 参数。

jaystone776 and others added 2 commits September 6, 2021 11:52

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Co-authored-by: Waynerv <ampedee@gmail.com>

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Co-authored-by: Waynerv <ampedee@gmail.com>
@github-actions
Copy link
Contributor

github-actions bot commented Sep 6, 2021

📝 Docs preview for commit 9ea7301 at: https://6135911adf6ebf5ecb22f8f2--fastapi.netlify.app

@tiangolo tiangolo changed the title Add Chinese Translation for docs\advanced\response-headers.md 🌐 Add Chinese translation for docs/advanced/response-headers.md Oct 5, 2021
@tiangolo tiangolo added awaiting-review lang-all Translations lang-zh Chinese translations labels Oct 5, 2021
@github-actions github-actions bot mentioned this pull request Oct 5, 2021
@tiangolo
Copy link
Member

It seems this was translated at some point in another PR. So I'll close this one, but thanks for the effort! ☕

@tiangolo tiangolo closed this Jun 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-review lang-all Translations lang-zh Chinese translations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants