Kaynağa Gözat

Disable DNS prefetching

master
Simon Ser 4 yıl önce
ebeveyn
işleme
b9a180b154
Veri tabanında bu imza için bilinen anahtar bulunamadı GPG Anahtar Kimliği: FDE7BE0E88F5E48
1 değiştirilmiş dosya ile 2 ekleme ve 0 silme
  1. +2
    -0
      server.go

+ 2
- 0
server.go Dosyayı Görüntüle

@@ -305,6 +305,8 @@ func New(e *echo.Echo, options *Options) (*Server, error) {
// `style-src 'unsafe-inline'` is required for e-mails with
// embedded stylesheets
ectx.Response().Header().Set("Content-Security-Policy", "default-src 'self'; style-src 'self' 'unsafe-inline'")
// DNS prefetching has privacy implications
ectx.Response().Header().Set("X-DNS-Prefetch-Control", "off")
return next(ectx)
}
})


Yükleniyor…
İptal
Kaydet