Skip to content

Commit

Permalink
Merge pull request #647 from companieshouse/bugfix/1710-tryAgain
Browse files Browse the repository at this point in the history
Allowing all urls on the start page
  • Loading branch information
sampankumar authored Feb 10, 2025
2 parents 224c91c + aa64f77 commit bf2c683
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/middleware/content_security_policy_middleware_config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ export const prepareCSPConfig = (nonce: string) : HelmetOptions => {

export const prepareCSPConfigHomePage = (nonce: string) : HelmetOptions => {
const NONCE = `'nonce-${nonce}'`;

return {
contentSecurityPolicy: {
directives: {
Expand All @@ -58,8 +57,9 @@ export const prepareCSPConfigHomePage = (nonce: string) : HelmetOptions => {
};

const formActionDirective = (ishomepage: boolean) => {
const ALL_CHS_URLS = "*";
if (ishomepage) {
return ["*aws.chsdev.org"];
return [ALL_CHS_URLS];
} else {
return [SELF, PIWIK_CHS_DOMAIN, CHS_URL];
}
Expand Down
2 changes: 1 addition & 1 deletion src/services/business-address/businessAddressService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class BusinessAddressService {
acspData.registeredOfficeAddress = businessAddress;
}

public getBusinessManualAddress (acspData: AcspData | AcspFullProfile ) {
public getBusinessManualAddress (acspData: AcspData | AcspFullProfile) {
return {
addressPropertyDetails: acspData?.registeredOfficeAddress?.premises,
addressLine1: acspData?.registeredOfficeAddress?.addressLine1,
Expand Down

0 comments on commit bf2c683

Please sign in to comment.