diff options
author | Michael Hunteman <michael@huntm.net> | 2024-10-20 18:52:16 -0700 |
---|---|---|
committer | Michael Hunteman <michael@huntm.net> | 2024-10-20 18:52:16 -0700 |
commit | 5a65b3a653eb4a9ca62332fa65c8d352e6dc782f (patch) | |
tree | 6f2fabb06936a7290a2f5e94a1b3aaf4534bf87c /server/cmd/main.go | |
parent | 5c8f0ca091ff7f962260c75a0ffe4c99e7cdca3c (diff) |
Use UUID
Diffstat (limited to 'server/cmd/main.go')
-rw-r--r-- | server/cmd/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/cmd/main.go b/server/cmd/main.go index b57ee30..92ca984 100644 --- a/server/cmd/main.go +++ b/server/cmd/main.go @@ -60,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.18:5173"} + allowedOrigins := []string{"http://localhost:5173", "http://192.168.1.11:5173"} origin := request.Header.Get("Origin") if slices.Contains(allowedOrigins, origin) { responseWriter.Header().Add("Access-Control-Allow-Origin", origin) |