[v1.2.1] build n. 124
This commit is contained in:
@@ -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