aboutsummaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorE99p1ant <524306184@qq.com>2020-10-10 23:09:42 +0800
committerGitHub <noreply@github.com>2020-10-10 23:09:42 +0800
commitfd765bd88f4ea6ce906e44246f2b1d3e32692cfe (patch)
tree60d865a3999b11cd84bad4b11b637f14c0e0a6c1 /internal
parent533b6b0de262caab345d1fe2317ae1318ae32100 (diff)
context: fix Access-Control-Allow-Credentials header typo (#6381)
Diffstat (limited to 'internal')
-rw-r--r--internal/context/context.go2
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")
}