diff options
| author | Bert JW Regeer <bertjw@regeer.org> | 2016-04-15 16:44:55 -0600 |
|---|---|---|
| committer | Bert JW Regeer <bertjw@regeer.org> | 2016-04-15 16:44:55 -0600 |
| commit | 1799be9dd8666d10d6b4a04a9b75fc57f8626c6f (patch) | |
| tree | efa102960138a09c1f19f16acb30c50af6b5c592 /docs/whatsnew-1.7.rst | |
| parent | d534c450deeb0163629d7993f6faf12a97b2813c (diff) | |
| download | pyramid-1799be9dd8666d10d6b4a04a9b75fc57f8626c6f.tar.gz pyramid-1799be9dd8666d10d6b4a04a9b75fc57f8626c6f.tar.bz2 pyramid-1799be9dd8666d10d6b4a04a9b75fc57f8626c6f.zip | |
Update CHANGES/whatsnew-1.7 for updated require_csrf
Diffstat (limited to 'docs/whatsnew-1.7.rst')
| -rw-r--r-- | docs/whatsnew-1.7.rst | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/docs/whatsnew-1.7.rst b/docs/whatsnew-1.7.rst index b85e65ec1..a6d49673c 100644 --- a/docs/whatsnew-1.7.rst +++ b/docs/whatsnew-1.7.rst @@ -47,13 +47,14 @@ Feature Additions https://github.com/Pylons/pyramid/pull/2413 - Added a ``require_csrf`` view option which will enforce CSRF checks on - requests. If the CSRF check fails a ``BadCSRFToken`` exception will be - raised and may be caught by exception views (the default response is a - ``400 Bad Request``). This option should be used in place of the deprecated - ``check_csrf`` view predicate which would normally result in unexpected - ``404 Not Found`` response to the client instead of a catchable exception. - See :ref:`auto_csrf_checking` and - https://github.com/Pylons/pyramid/pull/2413 + requests with an unsafe method as defined by RFC2616. If the CSRF check fails + a ``BadCSRFToken`` exception will be raised and may be caught by exception + views (the default response is a ``400 Bad Request``). This option should be + used in place of the deprecated ``check_csrf`` view predicate which would + normally result in unexpected ``404 Not Found`` response to the client + instead of a catchable exception. See :ref:`auto_csrf_checking`, + https://github.com/Pylons/pyramid/pull/2413 and + https://github.com/Pylons/pyramid/pull/2500 - Subclasses of :class:`pyramid.httpexceptions.HTTPException` will now take into account the best match for the clients ``Accept`` header, and depending |
