Ring middleware to add secure headers to HTTP response. Inspired by Twitter secureheaders
To include the library in your project include the following to your :dependencies
:
[dhruv/ring-secure-headers "0.3.0"]
(ns simple-ring-server.core
(:use ring.middleware.secure-headers))
(defn handler [request]
{:status 200
:headers {"Content-Type" "text/html"}
:body "Hello World"})
(def app
(-> handler wrap-secure-headers))
SAMEORIGIN
nosniff
max-age=31536000
1; mode=block
Distributed under MIT license http://opensource.org/licenses/MIT