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
Pass `credentials: "include"` through to EventSource connections so live updates and feedback SSE can include cookies when proxying through an authenticated backend.
Copy file name to clipboardExpand all lines: packages/browser-sdk/README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -99,6 +99,7 @@ Supply these to the constructor call:
99
99
typeConfiguration= {
100
100
logger:console; // by default only logs warn/error, by passing `console` you'll log everything
101
101
apiBaseUrl?:"https://front.reflag.com";
102
+
credentials?:"include"|"same-origin"|"omit"; // forwarded to fetch requests; "include" also enables credentials for the default EventSource transport
102
103
feedback?:undefined; // See FEEDBACK.md
103
104
enableTracking?:true; // set to `false` to stop sending track events and user/company updates to Reflag servers. Useful when you're impersonating a user
104
105
enableLiveFlagUpdates?:false; // Set to `true` to keep flags up to date over SSE (browser SDK default: false)
@@ -242,6 +243,7 @@ For server-side rendered applications, you can eliminate the initial network req
242
243
typeConfiguration= {
243
244
logger:console; // by default only logs warn/error, by passing `console` you'll log everything
244
245
apiBaseUrl?:"https://front.reflag.com";
246
+
credentials?:"include"|"same-origin"|"omit"; // forwarded to fetch requests; "include" also enables credentials for the default EventSource transport
245
247
feedback?:undefined; // See FEEDBACK.md
246
248
enableTracking?:true; // set to `false` to stop sending track events and user/company updates to Reflag servers. Useful when you're impersonating a user
247
249
offline?:boolean; // Use the SDK in offline mode. Offline mode is useful during testing and local development
Copy file name to clipboardExpand all lines: packages/react-sdk/README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -552,6 +552,7 @@ The `<ReflagProvider>` initializes the Reflag SDK, fetches flags and starts list
552
552
- `enableTracking`: Set to `false` to stop sending tracking events and user/company updates to Reflag. Useful when you're impersonating a user (defaults to `true`),
553
553
- `enableLiveFlagUpdates`: Enables live flag updates over SSE. Defaults to `true` in the React SDK.
554
554
- `apiBaseUrl`: Optional base URL for the Reflag API. This also controls the SSE origin used for live flag updates and automated feedback,
555
+
- `credentials`: Optional fetch credentials mode. Set to `"include"` when proxying through your backend and authenticating with cookies; this also enables credentials for live-update SSE connections.
555
556
- `appBaseUrl`: Optional base URL for the Reflag application. Use this to override the default app URL,
556
557
557
558
- `logger`: Optional custom logger implementation (`debug`, `info`, `warn`, `error`) used by the underlying client,
Copy file name to clipboardExpand all lines: packages/vue-sdk/README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -183,6 +183,7 @@ The `<ReflagProvider>` initializes the Reflag SDK, fetches flags and starts list
183
183
184
184
-`enableTracking`: Set to `false` to stop sending tracking events and user/company updates to Reflag. Useful when you're impersonating a user (defaults to `true`),
185
185
-`apiBaseUrl`: Optional base URL for the Reflag API. This also controls the SSE origin used for live flag updates and automated feedback,
186
+
-`credentials`: Optional fetch credentials mode. Set to `"include"` when proxying through your backend and authenticating with cookies; this also enables credentials for live-update SSE connections.
186
187
-`appBaseUrl`: Optional base URL for the Reflag application. Use this to override the default app URL,
187
188
188
189
-`debug`: Set to `true` to enable debug logging to the console. If both `logger` and `debug` are provided, `logger` takes precedence,
0 commit comments