Debug CSRF issues temporarily
This commit is contained in:
@ -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));
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user