[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
+2 -2
View File
@@ -5,7 +5,7 @@
"frontend_url": "http://localhost:3000", "frontend_url": "http://localhost:3000",
"cdn_path": "cdn", "cdn_path": "cdn",
"cdn_url": "https://cdn.unmei.space", "cdn_url": "https://cdn.unmei.space",
"version": "1.2", "version": "1.2.1",
"build": 123, "build": 124,
"debug": true "debug": true
} }
+1 -1
View File
@@ -198,7 +198,7 @@ func apiMiddleware(next http.Handler) http.Handler {
//w.Header().Add("Cache-Control", "max-age=60") //w.Header().Add("Cache-Control", "max-age=60")
if r.Method == http.MethodOptions { 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") w.Header().Add("Access-Control-Allow-Methods", "GET, POST, DELETE, PUT, OPTIONS")
return return
} }