Skip to content

Commit ccd7a3a

Browse files
committed
Minor proofreading changes
1 parent 4165acc commit ccd7a3a

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

content/en/docs/howto/security/best-practices-security.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ This authentication option is not available for Published Web Services and can o
139139

140140
If you choose this option, the API will expect a "X-Csrf-Token" HTTP request header to be set on each incoming request. This authentication option is particularly interesting for custom JavaScript and widget implementations.
141141

142-
The session token can be acquired by calling Mendix Client API method to get the current CSRF token. This method should be called before each API call in your widget or JavaScript action to prevent cross-site request forgery (CSRF/XSRF).
142+
The session token can be acquired by calling a Mendix Client API method to get the current CSRF token. This method should be called before each API call in your widget or JavaScript action to prevent cross-site request forgery (CSRF/XSRF).
143143

144144
```javascript
145145
import getCSRFToken from "mx-api/session";

content/en/docs/howto10/security/best-practices-security.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,9 @@ If you choose this option, the API will expect a "X-Csrf-Token" HTTP request hea
141141

142142
The session token can be acquired by calling Mendix Client API method to get the current CSRF token. This method should be called before each API call in your widget or JavaScript action to prevent cross-site request forgery (CSRF/XSRF).
143143

144-
For Mendix versions below 10.23 you can call `mx.session.getConfig("csrftoken")` in your widget or JavaScript action.
144+
In Mendix versions below 10.23 you can call `mx.session.getConfig("csrftoken")` in your widget or JavaScript action.
145145

146-
For Mendix versions 10.23 and higher:
146+
In Mendix versions 10.23 and above:
147147

148148
```javascript
149149
import getCSRFToken from "mx-api/session";

0 commit comments

Comments
 (0)