More stuff for login and editor

This commit is contained in:
Caleb Gardner
2024-11-09 11:32:16 -06:00
parent 6896266055
commit 18aa193fe7
7 changed files with 51 additions and 15 deletions
+1 -1
View File
@@ -104,7 +104,7 @@ func (b *Backend) ServeHTTP(w http.ResponseWriter, r *http.Request) {
if r.Method == http.MethodOptions {
w.Header().Set("Access-Control-Allow-Methods", "*")
w.Header().Set("Access-Control-Allow-Credentials", "true")
w.Header().Set("Access-Control-Allow-Headers", "*")
w.Header().Set("Access-Control-Allow-Headers", "*, Authorization")
}
}
b.m.ServeHTTP(w, r)