Skip to content

Commit

Permalink
none -> 'none'
Browse files Browse the repository at this point in the history
  • Loading branch information
atmos committed Apr 7, 2014
1 parent ea6bf57 commit dbdda98
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion server.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ started_at = new Date
default_security_headers =
"X-Frame-Options": "deny"
"X-Content-Type-Options": "nosniff"
"Content-Security-Policy": "none"
"Content-Security-Policy": "'none'"
"Strict-Transport-Security" : "max-age=31536000; includeSubDomains"

four_oh_four = (resp, msg, url) ->
Expand Down
2 changes: 1 addition & 1 deletion server.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions test/proxy_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,14 @@ def test_always_sets_security_headers
['/', '/status'].each do |path|
response = RestClient.get("#{config['host']}#{path}")
assert_equal "deny", response.headers[:x_frame_options]
assert_equal "none", response.headers[:content_security_policy]
assert_equal "'none'", response.headers[:content_security_policy]
assert_equal "nosniff", response.headers[:x_content_type_options]
assert_equal "max-age=31536000; includeSubDomains", response.headers[:strict_transport_security]
end

response = request('http://dl.dropbox.com/u/602885/github/soldier-squirrel.jpg')
assert_equal "deny", response.headers[:x_frame_options]
assert_equal "none", response.headers[:content_security_policy]
assert_equal "'none'", response.headers[:content_security_policy]
assert_equal "nosniff", response.headers[:x_content_type_options]
assert_equal "max-age=31536000; includeSubDomains", response.headers[:strict_transport_security]
end
Expand Down

0 comments on commit dbdda98

Please sign in to comment.