Skip to content

Commit

Permalink
fixed: set Access-Control-Max-Age under 30m
Browse files Browse the repository at this point in the history
Per Fortify security assessment
  • Loading branch information
primalmotion committed Jul 24, 2019
1 parent 3da6454 commit 94747c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rest_server_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func makeCORSHandler(origin string) func(w http.ResponseWriter, r *http.Request)
}
_, writeEncoding, _ := elemental.EncodingFromHeaders(r.Header)
setCommonHeader(w, o, writeEncoding)
w.Header().Set("Access-Control-Max-Age", "86400")
w.Header().Set("Access-Control-Max-Age", "1500")
w.WriteHeader(http.StatusOK)
}
}
Expand Down

0 comments on commit 94747c4

Please sign in to comment.