Skip to content

Commit

Permalink
BAU: Remove sourceIp from config options for request config function
Browse files Browse the repository at this point in the history
This is no longer used since we switched to using the common headers library to set the x-forwarded-for header on requests to the backend, so can be removed
  • Loading branch information
BeckaL committed May 22, 2024
1 parent 08b60cd commit 65ffcca
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/utils/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ export interface ConfigOptions {
sessionId?: string;
clientSessionId?: string;
validationStatuses?: number[];
sourceIp?: string;
persistentSessionId?: string;
baseURL?: string;
userLanguage?: string;
Expand Down
3 changes: 0 additions & 3 deletions test/unit/utils/http.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ describe("getInternalRequestConfigWithSecurityHeaders", () => {
const actualConfig = getInternalRequestConfigWithSecurityHeaders(
{
sessionId: sessionId,
sourceIp: sourceIp,
clientSessionId: clientSessionId,
persistentSessionId: persistentSessionId,
reauthenticate: reauthenticate,
Expand Down Expand Up @@ -78,13 +77,11 @@ describe("getInternalRequestConfigWithSecurityHeaders", () => {
};

const sessionId = "someSessionId";
const sourceIp = "123.123.123.123";
const clientSessionId = "someClientSessionId";
const persistentSessionId = "somePersistentSessionId";
const actualConfig = getInternalRequestConfigWithSecurityHeaders(
{
sessionId: sessionId,
sourceIp: sourceIp,
clientSessionId: clientSessionId,
persistentSessionId: persistentSessionId,
},
Expand Down

0 comments on commit 65ffcca

Please sign in to comment.