Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Internet > HTTP (WWW)

    django-session-csrf-cookie 0.1

    Download button

    No screenshots available
    Downloads: 46  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Jody McIntyre | More programs
    BSD License / FREE
    August 21st, 2012, 09:22 GMT
    ROOT / Internet / HTTP (WWW)

     Read user reviews (0)  Refer to a friend  Subscribe

    django-session-csrf-cookie description

    Django middleware that works with session-csrf and sends a CSRF token cookie

    django-session-csrf-cookie is Django app that provides a CSRF token cookie when using django-session-csrf. By design, django-session-csrf does not require a CSRF token cookie, but such a cookie is useful for AJAX requests and other web APIs, since it allows the client to get the CSRF token without parsing HTML. (Note that the cookie is not used by the server for any purpose, so the security hole django-session-csrf was designed to fix is still fixed.)

    Installation

    From PyPI:

    pip install django-session-csrf-cookie

    From github:

    git clone git://github.com/trustcentric/django-session-csrf-cookie.git

    Add session_csrf_cookie.CsrfCookieMiddleware to your MIDDLEWARE_CLASSES below session_csrf.CsrfMiddleware:

    MIDDLEWARE_CLASSES = (
     ...
     'session_csrf.CsrfMiddleware',
     'session_csrf_cookie.CsrfCookieMiddleware',
     ...
    )


    Add session_csrf_cookie to INSTALLED_APPS.

    Settings

    session-csrf-cookie-middleware can be controlled using the following settings:

     CSRF_COOKIE_NAME

     The name used for the CSRF token cookie.

     Default: csrftoken
     CSRF_COOKIE_DOMAIN

     The domain to be used when setting the CSRF cookie.

     Default: None
     CSRF_COOKIE_SECURE

     Whether to use a secure cookie for the CSRF cookie.

     Default: False
     CSRF_COOKIE_HTTPONLY

     Whether to set the HTTPOnly flag on the CSRF cookie.

     Default: False


    Product's homepage

    Requirements:

    · Python
    · Django

      


    TAGS:

    CSRF token | session-csrf cookie | Django | CSRF | token

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM