mirror of
https://github.com/luxfi/broker.git
synced 2026-09-24 00:25:18 +00:00
fix: add localhost:3001 to CORS allowed origins for CEX frontend
This commit is contained in:
+1
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user