From 70fed0ba5f92e93f8ea7ef0254b9b25d5854b16e Mon Sep 17 00:00:00 2001 From: KaWaite Date: Wed, 3 Aug 2022 11:00:41 +0900 Subject: [PATCH] chore: add new frontend endpoint (for Vite@3) --- internal/app/app.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/app/app.go b/internal/app/app.go index 8b007d4f..95d42331 100644 --- a/internal/app/app.go +++ b/internal/app/app.go @@ -139,7 +139,7 @@ func allowedOrigins(cfg *ServerConfig) []string { } origins := append([]string{}, cfg.Config.Origins...) if cfg.Debug { - origins = append(origins, "http://localhost:3000", "http://localhost:8080") + origins = append(origins, "http://localhost:3000", "http://127.0.0.1:3000", "http://localhost:8080") } return origins }