'BAD CSRF' while creating a new post


I am trying to create a new post, but I am getting ‘BAD CSRF’ error, can anyone help me with this?

Screenshot 2020-04-23 at 7.44.04 PM

Change the key names that you are using in your request header to api-key and api-username. Header field names are not case sensitive, but underscores cannot be used in place of dashes. For an example of a properly formatted API request have a look at the example given at the start of this topic: Discourse API Documentation.


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.