|
@@ -12,7 +12,7 @@ func Cors() gin.HandlerFunc {
|
12
|
12
|
config := cors.DefaultConfig()
|
13
|
13
|
|
14
|
14
|
config.AddAllowMethods(http.MethodDelete, http.MethodOptions, http.MethodPatch)
|
15
|
|
- config.AddAllowHeaders("Authorization", "X-Require-Cookie")
|
|
15
|
+ config.AddAllowHeaders("Authorization", "X-Require-Cookie", "X-Device")
|
16
|
16
|
config.AllowCredentials = true
|
17
|
17
|
config.AllowOriginFunc = func(origin string) bool {
|
18
|
18
|
if gin.Mode() == gin.DebugMode {
|