Include CSRF token in webapp’s API requests #11
Labels
Difficulty/1:Easy
Easy ticket
Hacktoberfest
Help Wanted
Community help wanted
Tech/ReactJS
Type/Enhancement
New feature or improvement of existing feature
Up For Grabs
Ready for help from the community. Removed when someone volunteers
When a plugin’s webapp makes an API request to the Mattermost server, it needs to include the CSRF token supplied by the server in its request. This can be done using the
getOptions
function exported by the mattermost-redux library. Here is some example usagehttps://github.com/mattermost/mattermost-plugin-jira/blob/ae5676ead0e9effca29d2948c6596f42cf6e35c1/webapp/src/client/index.js#L13-L18
The text was updated successfully, but these errors were encountered: