per page, with , order by , clip by
Results of 1 - 10 of about 38 for protect (0.003 sec.)
Django の CSRF 保護を利用する — Django 6.1 ドキュメント 13616
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django の CSRF 保護を利用する ¶ CSRF 対策をあなたのビューで有効にするには、以下の手順に従ってください: The CSRF middleware is activated by default i ... view middleware that assumes that CSRF attacks have been dealt with. (推奨されませんが) もし対策を無効にする場合は、 csrf_protect() を使って特定のビューを保護することができます (下記を参照してください)。 POST フォームを使う全てのテンプレートで、POST が ... 体を保護するために CsrfViewMiddleware を追加する代わりに、保護を必要とする特定のビューにおいて、まったく同じ機能を持つ csrf_protect() デコレータを使えます。アウトプット内に CSRF トークンを挿入するビューと、POST フォームデータを受け入れるビューの両方で使用 ... も設定されずにキャッシュされます。この場合、CSRF トークンを挿入する必要があるビューでは、 django.views.decorators.csrf.csrf_protect() デコレータを最初に使うべきです: from django.views.decorators.cache import cache_page from django.views.decorators.csrf i ...
https://man.mtool.work/django/6.1/howto/csrf.html
Django の CSRF 保護を利用する — Django 6.1 ドキュメント 13475
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django の CSRF 保護を利用する ¶ CSRF 対策をあなたのビューで有効にするには、以下の手順に従ってください: The CSRF middleware is activated by default i ... view middleware that assumes that CSRF attacks have been dealt with. (推奨されませんが) もし対策を無効にする場合は、 csrf_protect() を使って特定のビューを保護することができます (下記を参照してください)。 POST フォームを使う全てのテンプレートで、POST が ... 体を保護するために CsrfViewMiddleware を追加する代わりに、保護を必要とする特定のビューにおいて、まったく同じ機能を持つ csrf_protect() デコレータを使えます。アウトプット内に CSRF トークンを挿入するビューと、POST フォームデータを受け入れるビューの両方で使用 ... も設定されずにキャッシュされます。この場合、CSRF トークンを挿入する必要があるビューでは、 django.views.decorators.csrf.csrf_protect() デコレータを最初に使うべきです: from django.views.decorators.cache import cache_page from django.views.decorators.csrf i ...
https://man.mtool.work/django/6.1/howto/csrf.html
クロスサイトリクエストフォージェリ (CSRF) 対策 — Django 6.1 ドキュメント 10000
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » クロスサイトリクエストフォージェリ (CSRF) 対策 ¶ CSRF ミドルウェアとテンプレートタグは、簡単に扱える Cross Site Request Forgeries 対策を提供していま ... .views.decorators.csrf import csrf_exempt @csrf_exempt def my_view ( request ): return HttpResponse ( "Hello world" ) csrf_protect ( view ) ¶ ビューに対して CsrfViewMiddleware の保護機能を提供するデコレータです。 使い方は以下の通りです: from django.shor ... tcuts import render from django.views.decorators.csrf import csrf_protect @csrf_protect def my_view ( request ): c = {} # ... return render ( request , "a_template.html" , c ) requires_csrf_token ... ( view ) ¶ 通常 csrf_token テンプレートタグは CsrfViewMiddleware.process_view または csrf_protect のような等価なものが実行されていないと動作しません。ビューデコレータ requires_csrf_token を使用すると、テンプレートタグを確 ...
https://man.mtool.work/django/6.1/ref/csrf.html
ファイルのアップロード — Django 6.1 ドキュメント 9717
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » ファイルのアップロード ¶ Django がファイルアップロードを扱うとき、ファイルデータは request.FILES に格納されます ( request についての詳細は リクエスト ... you will need to use csrf_exempt() on your view to allow you to change 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 upload_file_view ( request ): request . upload_handlers . insert ( 0 , ProgressBarUploadHandler ( request ... )) return _upload_file_view ( request ) @csrf_protect def _upload_file_view ( request ): # Process request ... クラスベースのビューを使用している場合は、その dispatch() メソッド ...
https://man.mtool.work/django/6.1/topics/http/file-uploads.html
ファイルのアップロード — Django 6.1 ドキュメント 9717
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » ファイルのアップロード ¶ Django がファイルアップロードを扱うとき、ファイルデータは request.FILES に格納されます ( request についての詳細は リクエスト ... you will need to use csrf_exempt() on your view to allow you to change 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 upload_file_view ( request ): request . upload_handlers . insert ( 0 , ProgressBarUploadHandler ( request ... )) return _upload_file_view ( request ) @csrf_protect def _upload_file_view ( request ): # Process request ... クラスベースのビューを使用している場合は、その dispatch() メソッド ...
https://man.mtool.work/django/6.1/topics/http/file-uploads.html
クロスサイトリクエストフォージェリ (CSRF) 対策 — Django 6.1 ドキュメント 9292
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » クロスサイトリクエストフォージェリ (CSRF) 対策 ¶ CSRF ミドルウェアとテンプレートタグは、簡単に扱える Cross Site Request Forgeries 対策を提供していま ... .views.decorators.csrf import csrf_exempt @csrf_exempt def my_view ( request ): return HttpResponse ( "Hello world" ) csrf_protect ( view ) ¶ ビューに対して CsrfViewMiddleware の保護機能を提供するデコレータです。 使い方は以下の通りです: from django.shor ... tcuts import render from django.views.decorators.csrf import csrf_protect @csrf_protect def my_view ( request ): c = {} # ... return render ( request , "a_template.html" , c ) requires_csrf_token ... ( view ) ¶ 通常 csrf_token テンプレートタグは CsrfViewMiddleware.process_view または csrf_protect のような等価なものが実行されていないと動作しません。ビューデコレータ requires_csrf_token を使用すると、テンプレートタグを確 ...
https://man.mtool.work/django/6.1/ref/csrf.html
Django におけるセキュリティ — Django 6.1 ドキュメント 7909
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django におけるセキュリティ ¶ このドキュメントは、Django のセキュリティ機能の概要です。Django を利用したサイトを安全なものにするためのヒントを説明し ... Django におけるユーザー入力の検証については、 フォームに関するドキュメント を参照してください。 Cross-site scripting (XSS) protection ¶ In a cross-site scripting attack, malicious code in the form of a client-side script is injected into another user's ... okies or web services, if the data are not adequately sanitized before being published in a page. Django templates provide protection against the majority of cross-site scripting attacks by automatically escaping characters that represent a risk (that i ... s that could be interpreted by the browser to malicious effect are instead safely displayed ). However, the extent of this protection and its limitations should be understood. Ambiguity between the developer's intention and how the browser interprets HT ...
https://man.mtool.work/django/6.1/topics/security.html
Django 4.2.30 release notes — Django 6.1 ドキュメント 7909
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 4.2.30 release notes ¶ April 7, 2026 Django 4.2.30 fixes one security issue with severity "moderate" and four security issues with severity " ... runserver was patched in CVE 2015-0219 .) But under ASGI, there is not the same uniform expectation, even if many proxies protect against this under default configuration (including nginx via underscores_in_headers off; ). Headers containing underscore ...
https://man.mtool.work/django/6.1/releases/4.2.30.html
Django 5.2.13 release notes — Django 6.1 ドキュメント 7909
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 5.2.13 release notes ¶ April 7, 2026 Django 5.2.13 fixes one security issue with severity "moderate" and four security issues with severity " ... runserver was patched in CVE 2015-0219 .) But under ASGI, there is not the same uniform expectation, even if many proxies protect against this under default configuration (including nginx via underscores_in_headers off; ). Headers containing underscore ...
https://man.mtool.work/django/6.1/releases/5.2.13.html
Django におけるセキュリティ — Django 6.1 ドキュメント 7909
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django におけるセキュリティ ¶ このドキュメントは、Django のセキュリティ機能の概要です。Django を利用したサイトを安全なものにするためのヒントを説明し ... Django におけるユーザー入力の検証については、 フォームに関するドキュメント を参照してください。 Cross-site scripting (XSS) protection ¶ In a cross-site scripting attack, malicious code in the form of a client-side script is injected into another user's ... okies or web services, if the data are not adequately sanitized before being published in a page. Django templates provide protection against the majority of cross-site scripting attacks by automatically escaping characters that represent a risk (that i ... s that could be interpreted by the browser to malicious effect are instead safely displayed ). However, the extent of this protection and its limitations should be understood. Ambiguity between the developer's intention and how the browser interprets HT ...
https://man.mtool.work/django/6.1/topics/security.html
PREV 1 2 3 4 NEXT