per page, with , order by , clip by
Results of 1 - 10 of about 67 for csrf (0.004 sec.)
Django の CSRF 保護を利用する 14254
Django の CSRF 保護を利用する CSRF 対策をあなたのビューで有効にするには、以下の手順に従ってください: The CSRF middleware is activated by default in the MIDDLEWARE setting. If you override that setting, remember that 'django.middleware.csrf. ... CsrfViewMiddleware' should come before any view middleware that assumes that CSRF attacks have been dealt with. (推奨されませんが) もし対策を無効にする場合は、 csrf_protect() を使って特定のビューを保護する ... (下記を参照してください)。 POST フォームを使う全てのテンプレートで、POST が内部 URL に使われる場合は、 <form> 要素の内部で csrf_token タグを使用してください。 < form method = "post" > {% csrf_token %} この方法は、外部の URL を対象にする POST フォーム ... で使ってはいけません。CSRF トークンが外部に漏れ、脆弱性の原因となります。 対応するビュー関数では、 {% csrf_token %} が正しく機能するように、レスポンス ...
https://man.mtool.work/django/6.1/howto/csrf.html
クロスサイトリクエストフォージェリ (CSRF) 対策 13017
クロスサイトリクエストフォージェリ (CSRF) 対策 CSRF ミドルウェアとテンプレートタグは、簡単に扱える Cross Site Request Forgeries 対策を提供しています。このタイプの攻撃は、訪問者のログイン情報を悪用してあなたのサイトに何らかの操作を行うことを ... 意のあるウェブサイトによって行われます。また、関連する攻撃として、ユーザーを騙して別のユーザー権限でログインさせる 'ログイン CSRF' と呼ばれる攻撃もありますが、これも対策に含まれます。 CSRF 攻撃に対する第一の防御は、 GET リクエスト (および RFC 9110 Sect ... 用を取り除くというものです。そして、 POST、PUT、DELETE のような、'安全でない' メソッドによるリクエストについては、 Django の CSRF 保護を利用する で説明されている手順で保護できます。 しくみ CSRF対策は以下のようなことを基本としています: 他のサイトがアクセ ... スできないランダムな秘密の値である CSRF クッキー。 CsrfViewMiddleware は django.middleware.csrf.get_token() が呼び出されると、常にこのクッキーをレスポンスと一緒に ...
https://man.mtool.work/django/6.1/ref/csrf.html
Django 1.1.4 リリースノート 9901
Django 1.1.4 リリースノート Django 1.1.4 へようこそ! This is the fourth "bugfix" release in the Django 1.1 series, improving the stability and performance of the Django 1.1 codebase. With one exception, Django 1.1.4 maintains backwards comp ... atibilities, and deprecated features in the 1.1 branch, see the Django 1.1 リリースノート . Backwards incompatible changes CSRF exception for AJAX requests Django includes a CSRF-protection mechanism, which makes use of a token inserted into outgoing ... forms. Middleware then checks for the token's presence on form submission, and validates it. Prior to Django 1.2.5, our CSRF protection made an exception for AJAX requests, on the following basis: Many AJAX toolkits add an X-Requested-With header ... way that a custom header of this nature can be added is with XMLHttpRequest. Therefore, for ease of use, we did not apply CSRF checks to requests that appeared to be AJAX on the basis of the X-Requested-With header. The Ruby on Rails web framework h ...
https://man.mtool.work/django/6.1/releases/1.1.4.html
Django 1.2.5 リリースノート 8976
Django 1.2.5 リリースノート Django 1.2.5 へようこそ! This is the fifth "bugfix" release in the Django 1.2 series, improving the stability and performance of the Django 1.2 codebase. With four exceptions, Django 1.2.5 maintains backwards com ... atibilities, and deprecated features in the 1.2 branch, see the Django 1.2 リリースノート . Backwards incompatible changes CSRF exception for AJAX requests Django includes a CSRF-protection mechanism, which makes use of a token inserted into outgoing ... forms. Middleware then checks for the token's presence on form submission, and validates it. Prior to Django 1.2.5, our CSRF protection made an exception for AJAX requests, on the following basis: Many AJAX toolkits add an X-Requested-With header ... way that a custom header of this nature can be added is with XMLHttpRequest. Therefore, for ease of use, we did not apply CSRF checks to requests that appeared to be AJAX on the basis of the X-Requested-With header. The Ruby on Rails web framework h ...
https://man.mtool.work/django/6.1/releases/1.2.5.html
設定 8621
設定 警告 設定を上書きするとき、特にデフォルト値が空でないリストや辞書の場合、例えば STATICFILES_FINDERS などは、注意してください。Djangoの使用したい機能に必要なコンポーネントを保持するようにしてください。 コアの設定 ここでは、Django の cor ... ォルト値: 600 キャッシュミドルウェア 用のページをキャッシュするデフォルトの秒数。 Django のキャッシュフレームワーク を参照。 CSRF_COOKIE_AGE デフォルト値: 31449600 (約1年、秒単位) CSRF クッキーの有効期間 (秒単位)。 長期間の有効期限を設定する理由は、ユー ... ラウザ(特にInternet Explorer)では、永続的なクッキーの使用を禁止したり、クッキージャーのインデックスがディスク上で破損して、CSRF保護チェックが(時々断続的に)失敗する原因となることがあります。この設定を None に変更すると、クッキーを永続的なストレージで ... はなくメモリ内に保持するセッションベースのCSRFクッキーを使用します。 CSRF_COOKIE_DOMAIN デフォルト値: None The domain to be used when setting the CSRF cookie. This can be ...
https://man.mtool.work/django/6.1/ref/settings.html
ファイルのアップロード 8535
ファイルのアップロード Django がファイルアップロードを扱うとき、ファイルデータは request.FILES に格納されます ( request についての詳細は リクエスト/レスポンス オブジェクト を参照してください)。ここでは、ファイルがどのようにディスクとメモリに ... て、アップロードハンドラの修正は、常にビューのできるだけ早い段階で行うようにするべきです。 Also, request.POST is accessed by CsrfViewMiddleware which is enabled by default. This means you will need to use csrf_exempt() on your view to allow you to chan ... ge the upload handlers. You will then need to use csrf_protect() on the function that actually processes the request. Note that this means that the handlers may start receiving ... the file upload before the CSRF checks have been done. Example code: from django.views.decorators.csrf import csrf_exempt , csrf_protect @csrf_exempt def ...
https://man.mtool.work/django/6.1/topics/http/file-uploads.html
Django 1.4.11 リリースノート 8493
Django 1.4.11 リリースノート April 21, 2014 Django 1.4.11 fixes three security issues in 1.4.10. Additionally, Django's vendored version of six, django.utils.six , has been upgraded to the latest release (1.6.1). Unexpected code execution u ... les the developer intended to be imported in this fashion can or will be imported. Caching of anonymous pages could reveal CSRF token Django includes both a caching framework and a system for preventing cross-site request forgery (CSRF) attacks . The ... CSRF-protection system is based on a random nonce sent to the client in a cookie which must be sent by the client on future req ... mous (i.e., unauthenticated) clients. When the first anonymous request to a given page is by a client which did not have a CSRF cookie, the cache framework will also cache the CSRF cookie and serve the same nonce to other anonymous clients who do not ...
https://man.mtool.work/django/6.1/releases/1.4.11.html
Django 1.5.6 リリースノート 8493
Django 1.5.6 リリースノート April 21, 2014 Django 1.5.6 fixes several bugs in 1.5.5, including three security issues. Unexpected code execution using reverse() Django's URL handling is based on a mapping of regex patterns (representing the ... les the developer intended to be imported in this fashion can or will be imported. Caching of anonymous pages could reveal CSRF token Django includes both a caching framework and a system for preventing cross-site request forgery (CSRF) attacks . The ... CSRF-protection system is based on a random nonce sent to the client in a cookie which must be sent by the client on future req ... mous (i.e., unauthenticated) clients. When the first anonymous request to a given page is by a client which did not have a CSRF cookie, the cache framework will also cache the CSRF cookie and serve the same nonce to other anonymous clients who do not ...
https://man.mtool.work/django/6.1/releases/1.5.6.html
Django 1.2 リリースノート 8322
Django 1.2 リリースノート 2010 年 5 月 17 日 Django 1.2 へようこそ! Nearly a year in the making, Django 1.2 packs an impressive list of new features and lots of bug fixes. These release notes cover the new features, as well as important cha ... nce. Model validation inspired by Django's form validation. Vastly improved protection against Cross-Site Request Forgery (CSRF). A new user "messages" framework with support for cookie- and session-based message for both anonymous and authenticated ... be backwards-incompatible. The big changes are: Support for Python 2.3 has been dropped. See the full notes below. The new CSRF protection framework is not backwards-compatible with the old system. Users of the old system will not be affected until t ... he old system is removed in Django 1.4. However, upgrading to the new CSRF protection framework requires a few important backwards-incompatible changes, detailed in CSRF Protection , below. Authors ...
https://man.mtool.work/django/6.1/releases/1.2.html
Django 4.0 リリースノート 8137
Django 4.0 リリースノート 2021年12月7日 Django 4.0 へようこそ! このリリースノートでは、 バージョン 4.0 の新機能 と、Django 3.2 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。また、 一部の機能を非推奨 とし ... () , aget_or_set() , or adelete_many() . Going forward, the a prefix will be used for async variants of methods generally. CSRF CSRF protection now consults the Origin header, if present. To facilitate this, some changes to the CSRF_TRUSTED_ORIGINS s ... Oracle 18c it ends in June 2021. Django 3.2 will be supported until April 2024. Django 4.0 officially supports Oracle 19c. CSRF_TRUSTED_ORIGINS changes Format change Values in the CSRF_TRUSTED_ORIGINS setting must include the scheme (e.g. 'http://' o ... ample.com' to 'https://*.example.com' . A system check detects any required changes. Configuring it may now be required As CSRF protection now consults the Origin header, you may need to set CSRF_TRUSTED_ORIGINS , particularly if you allow requests f ...
https://man.mtool.work/django/6.1/releases/4.0.html
PREV 1 2 3 4 5 6 7 NEXT