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
diff options
context:
space:
mode:
authorNaman Jagdish Gala <ngala@gitlab.com>2023-12-22 13:13:18 +0300
committerAlessio Caiazza <acaiazza@gitlab.com>2023-12-22 13:13:18 +0300
commitfb14102a5a5cfa14581c326f50c4034eea50f31a (patch)
tree985fb54a4b10cf2c711e9c6061479041e2dea5f3 /internal/feature
parent5e29f05994cf60590c3195216a96443a3a9b6367 (diff)
Add project prefix in session cookie path
Diffstat (limited to 'internal/feature')
-rw-r--r--internal/feature/feature.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/feature/feature.go b/internal/feature/feature.go
index d5c340ff..daf5f7c9 100644
--- a/internal/feature/feature.go
+++ b/internal/feature/feature.go
@@ -19,6 +19,12 @@ var HandleReadErrors = Feature{
EnvVariable: "FF_HANDLE_READ_ERRORS",
}
+// ProjectPrefixCookiePath enables support for path in session cookie
+var ProjectPrefixCookiePath = Feature{
+ EnvVariable: "FF_ENABLE_PROJECT_PREFIX_COOKIE_PATH",
+ defaultEnabled: false,
+}
+
// Enabled reads the environment variable responsible for the feature flag
// if FF is disabled by default, the environment variable needs to be "true" to explicitly enable it
// if FF is enabled by default, variable needs to be "false" to explicitly disable it