Add X-XSS-Protection and X-Content-Type-Options

このコミットが含まれているのは:
Omar Roth 2018-09-05 21:51:40 -05:00
コミット e6d2166bac
1個のファイルの変更3行の追加0行の削除

ファイルの表示

@ -106,6 +106,9 @@ spawn do
end
before_all do |env|
env.response.headers["X-XSS-Protection"] = "1; mode=block;"
env.response.headers["X-Content-Type-Options"] = "nosniff"
if env.request.cookies.has_key? "SID"
headers = HTTP::Headers.new
headers["Cookie"] = env.request.headers["Cookie"]