You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -130,7 +130,7 @@ By default, a noop configuration is provided. No headers will be set when this d
130
130
```ruby
131
131
classMyController < ApplicationController
132
132
defindex
133
-
SecureHeaders::opt_out_of_all_protection(request)
133
+
SecureHeaders.opt_out_of_all_protection(request)
134
134
end
135
135
end
136
136
```
@@ -191,7 +191,7 @@ Code | Result
191
191
192
192
#### Nonce
193
193
194
-
script/style-nonce can be used to whitelist inline content. To do this, call the SecureHeaders::content_security_policy_nonce then set the nonce attributes on the various tags.
194
+
script/style-nonce can be used to whitelist inline content. To do this, call the `SecureHeaders.content_security_policy_nonce` then set the nonce attributes on the various tags.
195
195
196
196
Setting a nonce will also set 'unsafe-inline' for browsers that don't support nonces for backwards compatibility. 'unsafe-inline' is ignored if a nonce is present in a directive in compliant browsers.
197
197
@@ -280,7 +280,7 @@ class Donkey < Sinatra::Application
0 commit comments