From d387e2159d39a77e75cae1dbb9ca109b2c89f58f Mon Sep 17 00:00:00 2001 From: Kim Gustyr Date: Wed, 3 Sep 2025 12:38:05 +0100 Subject: [PATCH 1/2] fix: CORS errors due to header changes --- flagsmith-core.ts | 4 ---- test/init.test.ts | 1 - 2 files changed, 5 deletions(-) diff --git a/flagsmith-core.ts b/flagsmith-core.ts index 877e946..b3a0f4f 100644 --- a/flagsmith-core.ts +++ b/flagsmith-core.ts @@ -829,10 +829,6 @@ const Flagsmith = class { options.headers['Flagsmith-Application-Version'] = this.applicationMetadata.version; } - if (SDK_VERSION) { - options.headers['Flagsmith-SDK-user-agent'] = `flagsmith-js-sdk/${SDK_VERSION}` - } - if (headers) { Object.assign(options.headers, headers); } diff --git a/test/init.test.ts b/test/init.test.ts index 6d9d66e..aa1823d 100644 --- a/test/init.test.ts +++ b/test/init.test.ts @@ -292,7 +292,6 @@ describe('Flagsmith.init', () => { headers: expect.objectContaining({ 'Flagsmith-Application-Name': 'Test App', 'Flagsmith-Application-Version': '1.2.3', - 'Flagsmith-SDK-user-agent': `flagsmith-js-sdk/${SDK_VERSION}`, }), }), ); From 852528025d868589c5a7dd98633760b2fa19b951 Mon Sep 17 00:00:00 2001 From: Kim Gustyr Date: Wed, 3 Sep 2025 12:40:35 +0100 Subject: [PATCH 2/2] bump version --- utils/version.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/version.ts b/utils/version.ts index f34f547..01abe05 100644 --- a/utils/version.ts +++ b/utils/version.ts @@ -1,2 +1,2 @@ // Auto-generated by write-version.js -export const SDK_VERSION = "9.3.1"; +export const SDK_VERSION = "9.3.2";