Add Content-Security-Policy header
This commit is contained in:
parent
bd663b43a0
commit
4560af165e
1 changed files with 1 additions and 0 deletions
|
@ -69,6 +69,7 @@ func (r *Response) commonHeaders() {
|
|||
r.writer.Header().Set("X-XSS-Protection", "1; mode=block")
|
||||
r.writer.Header().Set("X-Content-Type-Options", "nosniff")
|
||||
r.writer.Header().Set("X-Frame-Options", "DENY")
|
||||
r.writer.Header().Set("Content-Security-Policy", "default-src 'self'; img-src *; media-src *; frame-src *")
|
||||
}
|
||||
|
||||
// NewResponse returns a new Response.
|
||||
|
|
Loading…
Reference in a new issue