# \#csrf

**URL:** https://community.postman.com/tag/csrf/666.md

[Latest](https://community.postman.com/latest.md) · [Categories](https://community.postman.com/categories.md) · [Tags](https://community.postman.com/tags.md)

---

## [Pre-req script to set 'csrf-token' var for POST req in Flask](https://community.postman.com/t/pre-req-script-to-set-csrf-token-var-for-post-req-in-flask/51398)

<div class="topic-metadata">

**Author:** [@kallenatgmail](https://community.postman.com/u/kallenatgmail)\
**Replies:** 6\
**Last updated:** [September 12, 2023, 6:56am UTC](https://community.postman.com/t/pre-req-script-to-set-csrf-token-var-for-post-req-in-flask/51398 "2023-09-12T06:56:48Z")

</div>

Hello. I’ve found related answers to this in my search, but this isn’t quite working. I’m trying to use Postman to 1) register test users in my Flask site, 2) test duplicate registration. The Flask app presents the csrf-…
