We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14dc377 commit 8f031bfCopy full SHA for 8f031bf
middleware.go
@@ -59,7 +59,7 @@ func CORSMiddleware() gin.HandlerFunc {
59
return func(c *gin.Context) {
60
c.Writer.Header().Set("Access-Control-Allow-Origin", "*")
61
c.Writer.Header().Set("Access-Control-Allow-Credentials", "true")
62
- 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")
+ c.Writer.Header().Set("Access-Control-Allow-Headers", "Content-Type, Sort, sort, X-API-KEY, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization, accept, origin, Cache-Control, X-Requested-With")
63
c.Writer.Header().Set("Access-Control-Allow-Methods", "POST, OPTIONS, GET, PUT, HEAD")
64
65
if c.Request.Method == "OPTIONS" {
0 commit comments