Skip to content

Conversation

israel-oye
Copy link

This update extends the documentation regarding CSRF protection in the library. Specifically, it provides additional insights into the 'csrf' input name configuration for Non-FlaskForms in preventing the common "CSRF token is missing." Users can now better understand the implication of the WTF_CSRF_FIELD_NAME config.

Additionally, a new example has been included in the JavaScript section that demonstrates how to send the 'csrf_token' as a Jinja2 variable (to the backend) with the Fetch API using a Vanilla JavaScript example. This example shows the proper implementation of CSRF protection when working with the Fetch API.

israel-oye and others added 2 commits October 12, 2023 00:34
This update extends the documentation regarding CSRF protection in the library. Specifically, it provides additional insights into the 'csrf' input name configuration for Non-FlaskForms in preventing the common "CSRF token not found error." Users can now better understand the implication of the WTF_CSRF_FIELD_NAME config.

Additionally, a new example has been included in the JavaScript section that demonstrates how to send the 'csrf_token' as a Jinja2 variable (to the backend) with the Fetch API using a Vanilla JavaScript example. This example shows the proper implementation of CSRF protection when working with the Fetch API, contributing to a more secure application.
@azmeuk azmeuk added the docs label Oct 12, 2023
Add extra space after markup.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants