Deploy blocks until old dies, fix cors via rproxy3, and who accepts acceptable name

This commit is contained in:
Bel LaPointe
2020-07-23 23:04:50 -06:00
parent 599d52cf8d
commit 461592ec40
3 changed files with 11 additions and 3 deletions

View File

@@ -49,7 +49,13 @@ func jsonHandler(g storage.Graph) http.Handler {
}
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Access-Control-Allow-Origin", "*")
/*
w.Header().Set("Access-Control-Allow-Origin", "*")
w.Header().Set("Content-Type", "application/json")
w.Header().Set("Access-Control-Allow-Methods", "POST, GET, OPTIONS, PUT, DELETE, OPTIONS, TRACE")
w.Header().Set("Access-Control-Allow-Headers", "Accept, Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization")
*/
if gziphttp.Can(r) {
gz := gziphttp.New(w)
defer gz.Close()