diff options
author | E99p1ant <524306184@qq.com> | 2020-10-10 23:09:42 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-10 23:09:42 +0800 |
commit | fd765bd88f4ea6ce906e44246f2b1d3e32692cfe (patch) | |
tree | 60d865a3999b11cd84bad4b11b637f14c0e0a6c1 /internal | |
parent | 533b6b0de262caab345d1fe2317ae1318ae32100 (diff) |
context: fix Access-Control-Allow-Credentials header typo (#6381)
Diffstat (limited to 'internal')
-rw-r--r-- | internal/context/context.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/context/context.go b/internal/context/context.go index ec498eb5..55c94c59 100644 --- a/internal/context/context.go +++ b/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") } |