|
|
@@ -14,7 +14,6 @@ import (
|
|
|
"mtp2_if/controllers/wrtrade"
|
|
|
"mtp2_if/logger"
|
|
|
"mtp2_if/token"
|
|
|
- "net/http"
|
|
|
"time"
|
|
|
|
|
|
"github.com/gin-gonic/gin"
|
|
|
@@ -189,7 +188,7 @@ func CORSMiddleware() gin.HandlerFunc {
|
|
|
c.Writer.Header().Set("Access-Control-Allow-Methods", "POST, OPTIONS, GET, PUT")
|
|
|
c.Writer.Header().Set("Access-Control-Expose-Headers", "Content-Length, Access-Control-Allow-Origin, Access-Control-Allow-Headers, Content-Type, X-session-Token")
|
|
|
if c.Request.Method == "OPTIONS" {
|
|
|
- c.AbortWithStatus(http.StatusNoContent)
|
|
|
+ // c.AbortWithStatus(http.StatusNoContent)
|
|
|
return
|
|
|
}
|
|
|
|