Skip to content

Commit 75e44ff

Browse files
committed
fix: cors error for x-authorizer-url
1 parent d5f1c5a commit 75e44ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/middlewares/cors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ func CORSMiddleware() gin.HandlerFunc {
1515
}
1616

1717
c.Writer.Header().Set("Access-Control-Allow-Credentials", "true")
18-
c.Writer.Header().Set("Access-Control-Allow-Headers", "Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization, accept, origin, Cache-Control, X-Requested-With")
18+
c.Writer.Header().Set("Access-Control-Allow-Headers", "Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization, accept, origin, Cache-Control, X-Requested-With, X-authorizer-url")
1919
c.Writer.Header().Set("Access-Control-Allow-Methods", "POST, OPTIONS, GET, PUT")
2020

2121
if c.Request.Method == "OPTIONS" {

0 commit comments

Comments
 (0)