fix: drop CORS support

This commit is contained in:
JustSong
2022-11-23 16:05:09 +08:00
parent 00ee736e13
commit db13ee6f93
4 changed files with 0 additions and 17 deletions
-2
View File
@@ -10,7 +10,6 @@ import (
"log"
"message-pusher/channel"
"message-pusher/common"
"message-pusher/middleware"
"message-pusher/model"
"message-pusher/router"
"os"
@@ -56,7 +55,6 @@ func main() {
// Initialize HTTP server
server := gin.Default()
server.Use(gzip.Gzip(gzip.DefaultCompression))
server.Use(middleware.CORS())
// Initialize session store
if common.RedisEnabled {