ソースを参照

append the 'csrf_token' token to calculator app

append the 'csrf_token' token to calculator app simple
Yoer 10 年 前
コミット
44ced10
1 ファイル変更1 行追加0 行削除
  1. 1 0
      docs/sdk/sdk.md

+ 1 - 0
docs/sdk/sdk.md

@@ -251,6 +251,7 @@ to include a simple form:
       <span>${a} ${op} ${b} = ${result}</span>
       % endif
       <form action=${url("calculator.views.index")} method=POST>
+        ${ csrf_token(request) | n,unicode }
         <input name="a">
         <input type="radio" name="op" value="add">+</input>
         <input type="radio" name="op" value="subtract">-</input>