Skip to content

Commit 5c89532

Browse files
authored
fix: CORS errors due to header changes (#342)
1 parent 788768b commit 5c89532

File tree

3 files changed

+1
-6
lines changed

3 files changed

+1
-6
lines changed

flagsmith-core.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -829,10 +829,6 @@ const Flagsmith = class {
829829
options.headers['Flagsmith-Application-Version'] = this.applicationMetadata.version;
830830
}
831831

832-
if (SDK_VERSION) {
833-
options.headers['Flagsmith-SDK-user-agent'] = `flagsmith-js-sdk/${SDK_VERSION}`
834-
}
835-
836832
if (headers) {
837833
Object.assign(options.headers, headers);
838834
}

test/init.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,6 @@ describe('Flagsmith.init', () => {
292292
headers: expect.objectContaining({
293293
'Flagsmith-Application-Name': 'Test App',
294294
'Flagsmith-Application-Version': '1.2.3',
295-
'Flagsmith-SDK-user-agent': `flagsmith-js-sdk/${SDK_VERSION}`,
296295
}),
297296
}),
298297
);

utils/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
// Auto-generated by write-version.js
2-
export const SDK_VERSION = "9.3.1";
2+
export const SDK_VERSION = "9.3.2";

0 commit comments

Comments
 (0)