Skip to content

Commit e804749

Browse files
alaahongharsha509
andauthored
Update Chinese translation of "working_with_cookies" (SeleniumHQ#394)
* Add Chinese translation of "working_with_cookies" - support_packages/working_with_cookies.zh-cn.md * Add Chinese translation of "working_with_cookies" - support_packages/working_with_cookies.zh-cn.md Co-authored-by: Sri Harsha <Harsha509@users.noreply.github.com>
1 parent 22f1b9f commit e804749

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

docs_source_files/content/support_packages/working_with_cookies.zh-cn.md

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -590,25 +590,24 @@ fun main() {
590590
{{< / code-panel >}}
591591
{{< / code-tab >}}
592592

593-
## Same-Site Cookie Attribute
593+
## Same-Site Cookie属性
594594

595-
It allows a user to instruct browsers to control whether cookies
596-
are sent along with the request initiated by third party sites.
597-
It is introduced to prevent CSRF (Cross-Site Request Forgery) attacks.
595+
此属性允许用户引导浏览器控制cookie, 是否与第三方站点发起的请求一起发送.
596+
引入其是为了防止CSRF(跨站请求伪造)攻击.
598597

599-
Same-Site cookie attribute accepts two parameters as instructions
598+
Same-Site cookie属性接受以下两种参数作为指令
600599

601600
## Strict:
602-
When the sameSite attribute is set as **Strict**,
603-
the cookie will not be sent along with
604-
requests initiated by third party websites.
601+
当sameSite属性设置为 **Strict**,
602+
cookie不会与来自第三方网站的请求一起发送.
605603

606604
## Lax:
607-
When you set a cookie sameSite attribute to **Lax**,
608-
the cookie will be sent along with the GET
609-
request initiated by third party website.
605+
当您将cookie sameSite属性设置为 **Lax**,
606+
cookie将与第三方网站发起的GET请求一起发送.
610607

611-
**Note**: **As of now this feature is landed in chrome(80+version) and works with Selenium 4 and later versions.**
608+
**注意**: **到目前为止,
609+
此功能已适配于chrome (80+ version) 中,
610+
并适用于Selenium 4以及更高版本.**
612611

613612
{{< code-tab >}}
614613
{{< code-panel language="java" >}}

0 commit comments

Comments
 (0)