タグ

ブックマーク / blog.everqueue.com (1)

  • X-Content-Type-Options: nosniffのつけ方 | へぼい日記

    Apache mod_headersでできます Header set X-Content-Type-Options nosniff Nginx add_header X-Content-Type-Options nosniff; 但し、上記だとproxyなんかで既にX-Content-Type-Options: nosniff;が付いていると X-Content-Type-Options: nosniff, nosniff のようなヘッダになってしまう。問題ないかもしれないが気になる場合はNginxHttpHeadersMoreModuleを使って more_set_headers 'X-Content-Type-Options: nosniff'; とすると良いのかも。 Plack Plack::Middleware::Headerを使うと簡単です。 enable 'Header', s

    u1_113
    u1_113 2011/01/06
    X-Content-Type-Options: nosniff の付け方
  • 1