Skip to content

Commit 8a539d5

Browse files
committed
feat: allow local host for testing
1 parent f9114a2 commit 8a539d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/auth/cors.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import "net/http"
55
func SetCorsPolicy(w http.ResponseWriter, r *http.Request) {
66
origin := r.Header.Get("Origin")
77
switch origin {
8-
// case "http://localhost:5173", "https://mattglei.ch", "https://lcp.mattglei.ch":
9-
case "https://mattglei.ch", "https://lcp.mattglei.ch":
8+
case "http://localhost:5173", "https://mattglei.ch", "https://lcp.mattglei.ch":
9+
// case "https://mattglei.ch", "https://lcp.mattglei.ch":
1010
w.Header().Set("Access-Control-Allow-Origin", origin)
1111
w.Header().Set("Vary", "Origin")
1212
default:

0 commit comments

Comments
 (0)