Remove CSRF debug features

This commit is contained in:
Sebastian Serth
2021-04-22 11:31:30 +02:00
parent c243e65403
commit 9a5514942e
3 changed files with 1 additions and 10 deletions

View File

@ -12,11 +12,6 @@ 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));
}
};

View File

@ -27,10 +27,6 @@ html lang="#{I18n.locale || I18n.default_locale}"
| release: "#{Sentry.configuration.release}",
| environment: "#{Sentry.configuration.environment}",
| });
| Sentry.setContext("initial",{
| cookie: document.cookie,
| csrf: $('meta[name="csrf-token"]').attr("content")
| });
- if @current_user
| Sentry.configureScope(function(scope) {
| scope.setUser({

View File

@ -1,3 +1,3 @@
# Be sure to restart your server when you modify this file.
Rails.application.config.session_store :cookie_store, key: '_code_ocean_session', httponly: false
Rails.application.config.session_store :cookie_store, key: '_code_ocean_session'