Believe you can

If you can dream it, you can do it.

2017-12-01から1ヶ月間の記事一覧

BottleのCSRF対策がIE、Safariだと動かない

BottleではCSRF対策にbottle_utils.csrfが用意されています 組み込みはとっても簡単で @app.post('/') @csrf_token def index(): return dict(token=request.csrf_token) @app.post('/hoge') @csrf_protect def hoge(): redirect('/success') @csrf_tokenで…