Skip to content

Instantly share code, notes, and snippets.

Avatar

José Luis Pellicer jlpellicer

  • Tequisquiapan Qro., México
View GitHub Profile
@jlpellicer
jlpellicer / security.go
Created November 15, 2017 18:10
Security headers (Go)
View security.go
package middleware
import "net/http"
const (
xFrameOptions = "X-Frame-Options"
xFrameOptionsValue = "DENY"
xContentTypeOptions = "X-Content-Type-Options"
xContentTypeOptionsValue = "nosniff"
xssProtection = "X-XSS-Protection"