- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
🌐 Add Chinese translation for docs/advanced/response-headers.md
#3796
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🌐 Add Chinese translation for docs/advanced/response-headers.md
#3796
Conversation
Codecov Report
@@ 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.
|
📝 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` 参数。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
但如果需要浏览器中的客户端查看自定义响应头,则要在 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` 参数。 |
Co-authored-by: Waynerv <ampedee@gmail.com>
Co-authored-by: Waynerv <ampedee@gmail.com>
📝 Docs preview for commit 9ea7301 at: https://6135911adf6ebf5ecb22f8f2--fastapi.netlify.app |
docs/advanced/response-headers.md
It seems this was translated at some point in another PR. So I'll close this one, but thanks for the effort! ☕ |
As title