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

@ -27,6 +27,10 @@ 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({