config.AllowOrigins https://*.codingschool.co.kr
This commit is contained in:
		@@ -15,7 +15,7 @@ func Init() {
 | 
				
			|||||||
	Router = gin.Default()
 | 
						Router = gin.Default()
 | 
				
			||||||
	config := cors.DefaultConfig()
 | 
						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.AllowMethods = []string{"GET", "POST", "PUT", "DELETE", "PATCH"}
 | 
				
			||||||
	config.AllowHeaders = []string{"Origin", "Content-Length", "Content-Type"}
 | 
						config.AllowHeaders = []string{"Origin", "Content-Length", "Content-Type"}
 | 
				
			||||||
	Router.Use(cors.New(config))
 | 
						Router.Use(cors.New(config))
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user