Debug CSRF issues temporarily

This commit is contained in:
Sebastian Serth
2021-03-10 13:50:35 +01:00
parent 293f7f6df7
commit a174d75a47
4 changed files with 16 additions and 1 deletions

View File

@ -12,6 +12,11 @@ CodeOceanEditorAJAX = {
$.flash.danger({
text: message.length > 0 ? message : $('#flash').data('message-failure')
});
Sentry.setContext("error",{
cookie: document.cookie,
response: response.responseText,
csrf: $('meta[name="csrf-token"]').attr("content")
});
Sentry.captureException(JSON.stringify(response));
}
};