summaryrefslogtreecommitdiff
path: root/server/cmd/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'server/cmd/main.go')
-rw-r--r--server/cmd/main.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/server/cmd/main.go b/server/cmd/main.go
index 75caf19..f9da6ce 100644
--- a/server/cmd/main.go
+++ b/server/cmd/main.go
@@ -8,11 +8,10 @@ import (
"os"
"slices"
- "github.com/jackc/pgx/v5/pgxpool"
-
"git.huntm.net/wedding/server/admin"
"git.huntm.net/wedding/server/guest"
"git.huntm.net/wedding/server/middleware"
+ "github.com/jackc/pgx/v5/pgxpool"
)
var (
@@ -61,7 +60,7 @@ func writeMethods(responseWriter http.ResponseWriter, request *http.Request) {
}
func writeOrigins(responseWriter http.ResponseWriter, request *http.Request) {
- allowedOrigins := []string{"http://localhost:5173", "http://192.168.1.25:5173"}
+ allowedOrigins := []string{"http://localhost:5173"}
origin := request.Header.Get("Origin")
if slices.Contains(allowedOrigins, origin) {
responseWriter.Header().Add("Access-Control-Allow-Origin", origin)