Skip to content

Commit bc5fcb8

Browse files
authored
Merge pull request #1710 from companieshouse/asm-472-do-not-exclude-update-and-remove-urls
ASM-472 Re-include Update/Remove URL paths in session and CSRF middleware calls
2 parents 944d47e + ab64bb8 commit bc5fcb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/config/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export const CLOSED_PENDING_PAYMENT = "closed pending payment";
4444
export const PAYMENTS = "/payments";
4545
export const YOUR_FILINGS_PATH = "/user/transactions";
4646

47-
export const EXCLUDED_PATHS = /\/register-an-overseas-entity\/((?!healthcheck).)*/;
47+
export const EXCLUDED_PATHS = /^\/(?!register-an-overseas-entity\/healthcheck).*/;
4848

4949
// FEATURE FLAGS
5050
export const SHOW_SERVICE_OFFLINE_PAGE = getEnvironmentValue("SHOW_SERVICE_OFFLINE_PAGE");

0 commit comments

Comments
 (0)