We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 361a8af commit bd01f65Copy full SHA for bd01f65
src/components/codeContext.tsx
@@ -190,14 +190,16 @@ export async function fetchCodeKeywords(): Promise<CodeKeywords> {
190
};
191
}
192
193
-function getCsrfToken(): string | null {
+function getCsrfToken(): string {
194
// is sentry-sc in production, but may also be sc in other envs
195
// So we just try both variants
196
const cookieNames = ['sentry-sc', 'sc'];
197
198
- return cookieNames
+ const value = cookieNames
199
.map(cookieName => Cookies.get(cookieName))
200
.find(token => token !== null);
201
+
202
+ return value ?? '';
203
204
205
export async function createOrgAuthToken({
0 commit comments