Remove rack_mini_profiler from prod as it could show env var and force us to allow unsafe_eval and script in csp

This commit is contained in:
simon lehericey 2020-10-30 17:07:06 +01:00
parent da371be9e2
commit d82d1132c2
3 changed files with 4 additions and 9 deletions

View file

@ -1 +1,3 @@
Rack::MiniProfiler.config.authorization_mode = :whitelist
if Rails.env.development?
Rack::MiniProfiler.config.authorization_mode = :whitelist
end