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
@@ -139,6 +139,7 @@ type DatabaseContext struct {
139
139
WasInitializedSynchronouslybool// true if the database was initialized synchronously
140
140
BroadcastSlowMode atomic.Bool// bool to indicate if a slower ticker value should be used to notify changes feeds of changes
141
141
DatabaseStartupError*DatabaseError// Error that occurred during database online processes startup
142
+
SameSiteCookieMode http.SameSite
142
143
}
143
144
144
145
typeScopestruct {
@@ -251,6 +252,7 @@ type UnsupportedOptions struct {
251
252
KVBufferSizeint`json:"kv_buffer,omitempty"`// Enables user to set their own KV pool buffer
252
253
BlipSendDocsWithChannelRemovalbool`json:"blip_send_docs_with_channel_removal,omitempty"`// Enables sending docs with channel removals using channel filters
253
254
RejectWritesWithSkippedSequencesbool`json:"reject_writes_with_skipped_sequences,omitempty"`// Reject writes if there are skipped sequences in the database
255
+
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
@@ -1306,6 +1306,15 @@ Database:
1306
1306
oidc_tls_skip_verify:
1307
1307
description: Enable self-signed certificates for OIDC testing.
1308
1308
type: boolean
1309
+
same_site_cookie:
1310
+
description: |-
1311
+
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.
1312
+
type: string
1313
+
enum:
1314
+
- "Default"
1315
+
- "Lax"
1316
+
- "None"
1317
+
- "Strict"
1309
1318
sgr_tls_skip_verify:
1310
1319
description: Enable self-signed certificates for SG-replicate testing.
0 commit comments