Django-session-csrf. ¼øÀ§ ¹× ¿ä¾à
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://mozilla.com
Django-session-csrf. ű×
Django-session-csrf. ¼³¸í
ÄíÅ°°¡¾ø´Â DjangoÀÇ CSRF º¸È£ Django-Session-CSRF´Â ÄíÅ°¸¦ »ç¿ëÇÏÁö ¾Ê´Â DjangoÀÇ CSRF º¸È£ÀÇ ´ë¾ÈÀ» ±¸ÇöÇÕ´Ï´Ù. ´ë½Å DjangoÀÇ ¼¼¼Ç ¹é¿£µå¸¦ »ç¿ëÇÏ¿© ¼¹ö¿¡ CSRF ÅäÅ«À» À¯Áö °ü¸®ÇÕ´Ï´Ù. CSRF ÅäÅ«Àº ¸ðµç POST ¿äû (¾ç½Ä¿¡ CSRFMIDDLEWARETOKEN ¶Ç´Â X-CSRFTOKED Çì´õ Æ÷ÇÔ)°ú ÇÔ²² Æ÷ÇԵǾî¾ßÇÕ´Ï´Ù. PYPI : PIP ¼³Ä¡ Django-Session-CSRFFROM GitHub : git clone git : //github.com / mozilla/django-session-csrf.gitreplace django.core.context_processors.context_processors.context_processors.csrf ÆÄÀÏ _context_processors : template_context_processors = (... 'session_csrf.context_processor', ...) django.middleware.csrf.csrfviewmiddleware¸¦ »ç¿ëÇÏ¿© middleware_classesÀÇ session_csrf.csrfmiddleware : middleware_classes = (... 'session_csrf.csrfmiddleware', ...) ±×·± ´ÙÀ½ @csrf_protect decorator¸¦ ¼öÁ¤ÇÏ´Â monkeypatch django : import session_csrfsession_csrf.monkeatipatch () °ü¸®¿Í °°¾Æ Áö´ÂÁö È®ÀÎÇϽʽÿÀ. PY°¡ ºä°¡ °¡Á® ¿À±â Àü¿¡ ÆÐÄ¡°¡ Àû¿ëµË´Ï´Ù. ¿ä±¸ »çÇ× : ¡¤ ÆÄÀ̽ã
Django-session-csrf. °ü·Ã ¼ÒÇÁÆ®¿þ¾î