fix: remove AllowCredentials check for allow origins (#16)

This commit is contained in:
Bo-Yi Wu
2017-02-27 14:30:00 +08:00
committed by GitHub
parent 79e0d17cc9
commit bec00ec825
2 changed files with 9 additions and 1 deletions

View File

@ -48,7 +48,7 @@ func (cors *cors) applyCors(c *gin.Context) {
cors.handleNormal(c)
}
if !cors.allowAllOrigins && !cors.allowCredentials {
if !cors.allowAllOrigins {
c.Header("Access-Control-Allow-Origin", origin)
}
}