Skip to content

Commit 41baf8b

Browse files
committed
Minor documentation cleanup.
1 parent c7cd38d commit 41baf8b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ By default, a noop configuration is provided. No headers will be set when this d
130130
```ruby
131131
class MyController < ApplicationController
132132
def index
133-
SecureHeaders::opt_out_of_all_protection(request)
133+
SecureHeaders.opt_out_of_all_protection(request)
134134
end
135135
end
136136
```
@@ -191,7 +191,7 @@ Code | Result
191191

192192
#### Nonce
193193

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.
195195

196196
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.
197197

@@ -280,7 +280,7 @@ class Donkey < Sinatra::Application
280280
set :root, APP_ROOT
281281

282282
get '/' do
283-
SecureHeaders.override_x_frame_options(SecureHeaders::OPT_OUT)
283+
SecureHeaders.override_x_frame_options(request, SecureHeaders::OPT_OUT)
284284
haml :index
285285
end
286286
end

0 commit comments

Comments
 (0)