mirror of
https://github.com/vcscsvcscs/GenerationsHeritage.git
synced 2025-08-13 22:39:06 +02:00
update cors
This commit is contained in:
@@ -45,8 +45,9 @@ func main() {
|
||||
|
||||
router := gin.Default()
|
||||
router.Use(cors.New(cors.Config{
|
||||
AllowOrigins: []string{"http://localhost:5173", "http://localhost"},
|
||||
AllowOrigins: []string{"http://localhost:5173", "http://localhost", "https://feature-add-frontend.generationsheritage.pages.dev/", "https://csalad.varghacsongor.hu/"},
|
||||
AllowCredentials: true,
|
||||
AllowHeaders: []string{"Authorization"},
|
||||
MaxAge: 12 * time.Hour,
|
||||
}))
|
||||
router.GET("/health", hc.HealthCheckHandler())
|
||||
|
Reference in New Issue
Block a user