[v1.2.1] build n. 124

This commit is contained in:
2021-10-03 20:27:53 +03:00
parent 7babade475
commit 104b1404b0
6 changed files with 83 additions and 83 deletions
+1 -1
View File
@@ -198,7 +198,7 @@ func apiMiddleware(next http.Handler) http.Handler {
//w.Header().Add("Cache-Control", "max-age=60")
if r.Method == http.MethodOptions {
w.Header().Add("Access-Control-Allow-Headers", "Content-Type, Date, Content-Length, Location, dev")
w.Header().Add("Access-Control-Allow-Headers", "Content-Type, Date, Content-Length, Location, dev, cache")
w.Header().Add("Access-Control-Allow-Methods", "GET, POST, DELETE, PUT, OPTIONS")
return
}