Commit 9ace64fd authored by Matthew Taylor's avatar Matthew Taylor

add csrf for message clear requests

parent 6dbc4abd
......@@ -117,7 +117,8 @@ module.exports.clearMessageCount = function () {
api({
host: '',
uri: '/site-api/messages/messages-clear/',
method: 'POST'
method: 'POST',
useCsrf: true
}, function (err, body) {
if (err) {
dispatch(module.exports.setStatus('CLEAR_STATUS', module.exports.Status.CLEAR_ERROR));
......@@ -141,6 +142,7 @@ module.exports.clearAdminMessage = function (messageType, messageId, adminMessag
host: '',
uri: '/site-api/messages/messages-delete/',
method: 'POST',
useCsrf: true,
body: {
alertType: messageType,
alertId: messageId
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment