Update protocol links (#19658)

This commit is contained in:
Ihor Sychevskyi
2022-11-06 09:26:43 +02:00
committed by GitHub
parent be4f1e4f91
commit b520f57c4e
3 changed files with 3 additions and 3 deletions

View File

@@ -179,7 +179,7 @@ CSRF は、クロス・サイト・リクエスト・フォージェリ (cross-s
CSRF を回避するためには、常に次のことを守らなければなりません。
1. HTTP の規格、すなわち、GET はアプリケーションの状態を変更すべきではない、という規則に従うこと。
詳細は [RFC2616](https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html) を参照して下さい。
詳細は [RFC2616](https://www.rfc-editor.org/rfc/rfc9110.html#name-method-definitions) を参照して下さい。
2. Yii の CSRF 保護を有効にしておくこと。
場合によっては、コントローラやアクションの単位で CSRF 検証を無効化する必要があることがあるでしょう。これは、そのプロパティを設定することによって達成することが出来ます。

View File

@@ -179,7 +179,7 @@ CSRF 是跨站请求伪造的缩写。这个攻击思想源自许多应用程序
为了避免 CSRF 攻击,你总是需要:
1. 遵循 HTTP 准则,比如 GET 不应该改变应用的状态。
有关详细信息,请参阅 [RFC2616](https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html)。
有关详细信息,请参阅 [RFC2616](https://www.rfc-editor.org/rfc/rfc9110.html#name-method-definitions)。
2. 保证 Yii CSRF 保护开启。
有的时候你需要对每个控制器和/或方法使用禁用 CSRF。可以通过设置其属性来实现

View File

@@ -179,7 +179,7 @@ For this reason, Yii applies additional mechanisms to protect against CSRF attac
In order to avoid CSRF you should always:
1. Follow HTTP specification i.e. GET should not change application state.
See [RFC2616](https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html) for more details.
See [RFC2616](https://www.rfc-editor.org/rfc/rfc9110.html#name-method-definitions) for more details.
2. Keep Yii CSRF protection enabled.
Sometimes you need to disable CSRF validation per controller and/or action. It could be achieved by setting its property: