mirror of
https://codeberg.org/git-pages/git-pages.git
synced 2026-05-17 04:31:38 +00:00
Don't send Access-Control-Max-Age: in response to GET requests.
This header only has meaning in an `OPTIONS` response.
This commit is contained in:
@@ -55,7 +55,6 @@ func getPage(w http.ResponseWriter, r *http.Request) error {
|
||||
|
||||
// allow JavaScript code to access responses (including errors) even across origins
|
||||
w.Header().Set("Access-Control-Allow-Origin", "*")
|
||||
w.Header().Set("Access-Control-Max-Age", "86400")
|
||||
|
||||
if sitePath == ".git-pages" {
|
||||
// metadata directory name shouldn't be served even if present in site manifest
|
||||
|
||||
Reference in New Issue
Block a user