Explorar el Código

context: fix Access-Control-Allow-Credentials header typo (#6381)

E99p1ant hace 4 años
padre
commit
fd765bd88f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      internal/context/context.go

+ 1 - 1
internal/context/context.go

@@ -248,7 +248,7 @@ func Contexter() macaron.Handler {
 
 		if len(conf.HTTP.AccessControlAllowOrigin) > 0 {
 			c.Header().Set("Access-Control-Allow-Origin", conf.HTTP.AccessControlAllowOrigin)
-			c.Header().Set("'Access-Control-Allow-Credentials' ", "true")
+			c.Header().Set("Access-Control-Allow-Credentials", "true")
 			c.Header().Set("Access-Control-Max-Age", "3600")
 			c.Header().Set("Access-Control-Allow-Headers", "Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With")
 		}