diff options
| author | Michael Merickel <michael@merickel.org> | 2017-04-12 22:39:13 -0500 |
|---|---|---|
| committer | Michael Merickel <michael@merickel.org> | 2017-04-12 22:39:13 -0500 |
| commit | 2078f2cf5188491581cf1c362a583af2b2cbc2fe (patch) | |
| tree | 39ab90f196c18b248a950c9cec671ad27542dcbe | |
| parent | 66585f47e2ccd36be6a3cd5679ccf60161d9db05 (diff) | |
| download | pyramid-2078f2cf5188491581cf1c362a583af2b2cbc2fe.tar.gz pyramid-2078f2cf5188491581cf1c362a583af2b2cbc2fe.tar.bz2 pyramid-2078f2cf5188491581cf1c362a583af2b2cbc2fe.zip | |
add version tags on set_default_csrf_options
| -rw-r--r-- | pyramid/config/security.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pyramid/config/security.py b/pyramid/config/security.py index 6864ebb23..1d4bbe890 100644 --- a/pyramid/config/security.py +++ b/pyramid/config/security.py @@ -203,6 +203,11 @@ class SecurityConfiguratorMixin(object): need to send the ``X-CSRF-Token`` header. The callback is only tested for non-safe methods as defined by ``safe_methods``. + .. versionadded:: 1.7 + + .. versionchanged:: 1.8 + Added the ``callback`` option. + """ options = DefaultCSRFOptions( require_csrf, token, header, safe_methods, callback, |
