[v1.2.1] build n. 124
This commit is contained in:
+2
-2
@@ -5,7 +5,7 @@
|
||||
"frontend_url": "http://localhost:3000",
|
||||
"cdn_path": "cdn",
|
||||
"cdn_url": "https://cdn.unmei.space",
|
||||
"version": "1.2",
|
||||
"build": 123,
|
||||
"version": "1.2.1",
|
||||
"build": 124,
|
||||
"debug": true
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user