diff options
author | feistel <6742251-feistel@users.noreply.gitlab.com> | 2021-08-01 14:56:16 +0300 |
---|---|---|
committer | feistel <6742251-feistel@users.noreply.gitlab.com> | 2021-08-09 15:34:25 +0300 |
commit | 52f82517edfa6c2c1a3220d6ab5cf1440faf2d17 (patch) | |
tree | 1191c544f8540c86c900262a1dc00e992e035195 /app.go | |
parent | e48c8977887e0f33f2934b46e97e8dfe96f08d92 (diff) |
feat: add CORS header to HEAD requests
Changelog: changed
Diffstat (limited to 'app.go')
-rw-r--r-- | app.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 { |