mirror of
https://github.com/willnorris/imageproxy.git
synced 2024-12-16 21:56:43 -05:00
run goimports
This commit is contained in:
parent
5bb32547c9
commit
3999c5bd80
1 changed files with 1 additions and 1 deletions
|
@ -257,7 +257,7 @@ func (p *Proxy) serveImage(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
// Disable Content-Type sniffing
|
// Disable Content-Type sniffing
|
||||||
w.Header().Set("X-Content-Type-Options", "nosniff")
|
w.Header().Set("X-Content-Type-Options", "nosniff")
|
||||||
|
|
||||||
// Block potential XSS attacks especially in legacy browsers which do not support CSP
|
// Block potential XSS attacks especially in legacy browsers which do not support CSP
|
||||||
w.Header().Set("X-XSS-Protection", "1; mode=block")
|
w.Header().Set("X-XSS-Protection", "1; mode=block")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue