summaryrefslogtreecommitdiff
path: root/internal/middlewares/const.go
diff options
context:
space:
mode:
authorJames Elliott <james-d-elliott@users.noreply.github.com>2023-08-25 20:03:13 +1000
committerGitHub <noreply@github.com>2023-08-25 20:03:13 +1000
commitb0fcc39fe0a192b10dcf0bdc848eaf5f30429603 (patch)
tree30cca43f259ad646a07a7404c985679c7fdc46f3 /internal/middlewares/const.go
parent720eb60f125675bb54e5c8fa4d6f22f39b575a00 (diff)
refactor: fix swagger api corp headers (#5907)
Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
Diffstat (limited to 'internal/middlewares/const.go')
-rw-r--r--internal/middlewares/const.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/middlewares/const.go b/internal/middlewares/const.go
index ee9a56c08..bb42131f6 100644
--- a/internal/middlewares/const.go
+++ b/internal/middlewares/const.go
@@ -65,7 +65,9 @@ var (
headerValueStrictOriginCrossOrigin = []byte("strict-origin-when-cross-origin")
headerValueDENY = []byte("DENY")
headerValueSameOrigin = []byte("same-origin")
+ headerValueCrossOrigin = []byte("cross-origin")
headerValueSameSite = []byte("same-site")
+ headerValueUnsafeNone = []byte("unsafe-none")
headerValueRequireCORP = []byte("require-corp")
headerValueNoCache = []byte("no-cache")
headerValueNoStore = []byte("no-store")