You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: db/database.go
+23Lines changed: 23 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -164,6 +164,7 @@ type DatabaseContext struct {
164
164
CachedCCVStartingCas*base.VBucketCAS// If set, the cached value of the CCV starting CAS value to avoid repeated lookups
165
165
CachedCCVEnabled atomic.Bool// If set, the cached value of the CCV Enabled flag (this is not expected to transition from true->false, but could go false->true)
166
166
numVBucketsuint16// Number of vbuckets in the bucket
167
+
SameSiteCookieMode http.SameSite
167
168
}
168
169
169
170
typeScopestruct {
@@ -278,6 +279,7 @@ type UnsupportedOptions struct {
278
279
KVBufferSizeint`json:"kv_buffer,omitempty"`// Enables user to set their own KV pool buffer
279
280
BlipSendDocsWithChannelRemovalbool`json:"blip_send_docs_with_channel_removal,omitempty"`// Enables sending docs with channel removals using channel filters
280
281
RejectWritesWithSkippedSequencesbool`json:"reject_writes_with_skipped_sequences,omitempty"`// Reject writes if there are skipped sequences in the database
282
+
SameSiteCookie*string`json:"same_site_cookie,omitempty"`// Sets the SameSite attribute on session cookies.
returnhttp.SameSiteDefaultMode, fmt.Errorf("unsupported_options.same_site_cookie option %q is not valid, choices are \"Lax\", \"Strict\", and \"None", *o.SameSiteCookie)
Copy file name to clipboardExpand all lines: docs/api/components/schemas.yaml
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1698,6 +1698,15 @@ Database:
1698
1698
remote_config_tls_skip_verify:
1699
1699
description: Enable self-signed certificates for external JavaScript load.
1700
1700
type: boolean
1701
+
same_site_cookie:
1702
+
description: |-
1703
+
Override the session cookie SameSite behavior. By default, a session cookie will have SameSite:None if CORS is enabled, and will have no SameSite attribute if CORS is not enabled. Setting this property to`Default` will omit the SameSite attribute from the cookie.
1704
+
type: string
1705
+
enum:
1706
+
- "Default"
1707
+
- "Lax"
1708
+
- "None"
1709
+
- "Strict"
1701
1710
sgr_tls_skip_verify:
1702
1711
description: Enable self-signed certificates for SG-replicate testing.
0 commit comments