secure_headers icon indicating copy to clipboard operation
secure_headers copied to clipboard

"Configuration already exists" error

Open owen2345 opened this issue 11 months ago • 0 comments

I have a dockerized rails application and every time i change from a branch into another, I receive:

2025-02-05 10:43:33.634438 F [48:puma srv tp 001 reporting.rb:38] [[]] Rails -- Exception: SecureHeaders::Configuration::AlreadyConfiguredError: Configuration already exists
app.1  | /opt/bundle/ruby/2.7.0/gems/secure_headers-6.5.0/lib/secure_headers/configuration.rb:47:in `override'
10:43:33 app.1  | /app/app/controllers/application_controller.rb:47:in `<class:ApplicationController>'

To fix it I have to restart the docker container which is awkward.

owen2345 avatar Feb 05 '25 12:02 owen2345