config.AllowOrigins https://*.codingschool.co.kr
This commit is contained in:
parent
ad7b1db9cd
commit
dd5e409152
@ -15,7 +15,7 @@ func Init() {
|
||||
Router = gin.Default()
|
||||
config := cors.DefaultConfig()
|
||||
|
||||
config.AllowOrigins = []string{"http://127.0.0.1:3000", "http://localhost:3000", "http://localhost:3030", "https://cslms-api.codingschool.co.kr"}
|
||||
config.AllowOrigins = []string{"http://127.0.0.1:3000", "http://localhost:3000", "http://localhost:3030", "https://*.codingschool.co.kr"}
|
||||
config.AllowMethods = []string{"GET", "POST", "PUT", "DELETE", "PATCH"}
|
||||
config.AllowHeaders = []string{"Origin", "Content-Length", "Content-Type"}
|
||||
Router.Use(cors.New(config))
|
||||
|
Loading…
Reference in New Issue
Block a user