package app
import "github.com/bugsnag/bugsnag-go/examples/revelapp/app"
Index ¶
Variables ¶
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:]) }
TODO turn this into revel.HeaderFilter should probably also have a filter for CSRF not sure if it can go in the same filter or not
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
examples/revelapp/app/controllers |
- Version
- v1.1.0
- Published
- Nov 7, 2016
- Platform
- js/wasm
- Imports
- 2 packages
- Last checked
- 9 hours ago –
Tools for package owners.