Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0

actually fix apidocs this time

Cette révision appartient à :
Eliot Whalan 2017-09-03 21:53:01 +10:00
Parent 4f7f9d4d2c
révision dbb1d0e9c6

Voir le fichier

@ -75,7 +75,7 @@ func ScopesRequired(scopes ...string) gin.HandlerFunc {
// CSP set Content Security Policy http header
func CSP() gin.HandlerFunc {
return func(c *gin.Context) {
c.Header("Content-Security-Policy", "default-src 'self'; img-src * data:; media-src *; style-src 'self' maxcdn.bootstrapcdn.com fonts.googleapis.com 'unsafe-inline'; script-src 'self' 'unsafe-inline'; font-src 'self' maxcdn.bootstrapcdn.com 'unsafe-eval")
c.Header("Content-Security-Policy", "default-src 'self'; img-src * data:; media-src *; style-src 'self' maxcdn.bootstrapcdn.com fonts.googleapis.com 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; font-src 'self' fonts.gstatic.com maxcdn.bootstrapcdn.com")
c.Next()
}
}