Skip to content

Commit

Permalink
Make the TOTP cookie httponly
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhughes committed Aug 22, 2023
1 parent ce8f174 commit 0913f28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/secure_headers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
csp_policy[:report_uri] << Settings.csp_report_url if Settings.key?(:csp_report_url)

cookie_policy = {
:httponly => { :only => ["_osm_session"] }
:httponly => { :only => %w[_osm_session _osm_totp_token] }
}

SecureHeaders::Configuration.default do |config|
Expand Down

0 comments on commit 0913f28

Please sign in to comment.