You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
app.Use(cors.New(cors.Config{
AllowOrigins: utils.GetEnv("CLIENT_BASE_URL", "http://localhost:3000"), // Allowed origin
AllowMethods: "GET,POST,PUT,PATCH,DELETE,OPTIONS", // Allow all necessary HTTP methods
AllowHeaders: "Origin, Content-Type, Accept, Authorization", // Include Authorization and other headers
AllowCredentials: true, // Allow credentials to be included
}))
cutu-2025-backend/cmd/main.go
Lines 26 to 32 in ac5c79f
The text was updated successfully, but these errors were encountered: