I just tested your example curl command locally and it is working fine for me so the syntax is all correct. Is is possible the proxy is stripping some headers? That could be why you are getting the BAD CSRF errors because it can no longer read/access the api credentials.
blake
(Blake Erickson)
8
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Can't verify CSRF token authenticity while creating topics | 1 | 1257 | November 4, 2022 | |
| Issue with Api | 1 | 1006 | August 16, 2022 | |
| Discourse admin login throws 403 ["BAD CSRF"] error | 4 | 1802 | April 24, 2018 | |
| 'BAD CSRF' while creating a new post | 1 | 1947 | April 23, 2020 | |
| Improve BAD CSRF error message when making API calls with content-type application/json | 4 | 4474 | September 14, 2020 |