Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app.go
diff options
context:
space:
mode:
authorfeistel <6742251-feistel@users.noreply.gitlab.com>2021-08-01 14:56:16 +0300
committerfeistel <6742251-feistel@users.noreply.gitlab.com>2021-08-09 15:34:25 +0300
commit52f82517edfa6c2c1a3220d6ab5cf1440faf2d17 (patch)
tree1191c544f8540c86c900262a1dc00e992e035195 /app.go
parente48c8977887e0f33f2934b46e97e8dfe96f08d92 (diff)
feat: add CORS header to HEAD requests
Changelog: changed
Diffstat (limited to 'app.go')
-rw-r--r--app.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/app.go b/app.go
index 78c254b9..43f50d9c 100644
--- a/app.go
+++ b/app.go
@@ -45,7 +45,7 @@ const (
)
var (
- corsHandler = cors.New(cors.Options{AllowedMethods: []string{"GET"}})
+ corsHandler = cors.New(cors.Options{AllowedMethods: []string{http.MethodGet, http.MethodHead}})
)
type theApp struct {