Skip to content

Commit 9859c30

Browse files
committed
add deprecation warnings around changes to per-action csp overrides
1 parent 868307f commit 9859c30

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fixtures/rails_3_2_22_no_init/app/controllers/other_things_controller.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ def other_action
99
end
1010

1111
def secure_header_options_for(header, options)
12+
warn "[DEPRECATION] secure_header_options_for will not be supported in secure_headers 3.x."
1213
if params[:action] == "other_action"
1314
if header == :csp
1415
options.merge(:style_src => "'self'")

0 commit comments

Comments
 (0)