Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var HeaderFilter = func(c *revel.Controller, fc []revel.Filter) {
c.Response.Out.Header().Add("X-Frame-Options", "SAMEORIGIN")
c.Response.Out.Header().Add("X-XSS-Protection", "1; mode=block")
c.Response.Out.Header().Add("X-Content-Type-Options", "nosniff")
fc[0](c, fc[1:])
}
View Source
var SecureOriginProdFilter = func(c *revel.Controller, fc []revel.Filter) { if revel.RunMode == "prod" && c.Request.TLS == nil { c.Response.Out.WriteHeader(500) c.Response.Out.Write([]byte("BaseApp must be deployed to production on a secure HTTP origin!")) return } fc[0](c, fc[1:]) }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.