[v1.2.1] build n. 124
This commit is contained in:
+2
-2
@@ -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
|
||||||
}
|
}
|
||||||
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user