fix: add localhost:3001 to CORS allowed origins for CEX frontend

This commit is contained in:
2025-08-01 16:15:37 -07:00
parent c0a7894279
commit 0cd9e839a5
+1 -1
View File
@@ -63,7 +63,7 @@ func NewServer(registry *provider.Registry, listenAddr string) *Server {
r.Use(chimw.Recoverer)
r.Use(chimw.Timeout(60 * time.Second))
r.Use(cors.Handler(cors.Options{
AllowedOrigins: []string{"https://lux.financial", "https://app.lux.financial", "https://mpc.lux.network", "http://localhost:3000"},
AllowedOrigins: []string{"https://lux.financial", "https://app.lux.financial", "https://mpc.lux.network", "http://localhost:3000", "http://localhost:3001"},
AllowedMethods: []string{"GET", "POST", "PATCH", "DELETE", "OPTIONS"},
AllowedHeaders: []string{"Accept", "Authorization", "Content-Type", "X-API-Key"},
AllowCredentials: true,