Remove CSRF debug features
This commit is contained in:
@ -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));
|
||||
}
|
||||
};
|
@ -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({
|
||||
|
@ -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'
|
||||
|
Reference in New Issue
Block a user