We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e29133 commit a299a00Copy full SHA for a299a00
docs/classic-ui/csrf.md
@@ -52,14 +52,14 @@ Checks whether a valid CSRF token is present in the request and raises `Unauthor
52
Usage example:
53
54
```python
55
- from plone.protect import CheckAuthenticator
56
- from plone.protect import protec
57
-
58
- @protect(CheckAuthenticator)
59
- def write_to_api_or_service(self):
60
- # code here
61
- ...
62
- ```
+from plone.protect import CheckAuthenticator
+from plone.protect import protec
+
+@protect(CheckAuthenticator)
+def write_to_api_or_service(self):
+ # code here
+ ...
+```
63
64
### HTTP POST check with `PostOnly`
65
0 commit comments