Skip to content
This repository has been archived by the owner on Feb 16, 2021. It is now read-only.

Commit

Permalink
Fix missing method and secureheaders 4.x expectations
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Claudius committed Oct 24, 2017
1 parent 2255373 commit 491e9a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/ssh_scan_api/api.rb
Expand Up @@ -40,6 +40,7 @@ class API < Sinatra::Base
config.referrer_policy = "no-referrer"
config.csp = {
default_src: ["'none'"],
script_src: ["'none'"],
frame_ancestors: ["'none'"],
upgrade_insecure_requests: true, # see https://www.w3.org/TR/upgrade-insecure-requests/
}
Expand Down
4 changes: 4 additions & 0 deletions lib/ssh_scan_api/database.rb
Expand Up @@ -57,6 +57,10 @@ def get_scan(uuid)
@database.get_scan(uuid)
end

def auth_method_report
@database.auth_method_report
end

def grade_report
@database.grade_report
end
Expand Down

0 comments on commit 491e9a5

Please sign in to comment.