Skip to content

Commit 559174a

Browse files
authored
Merge branch 'vc/http-only-storefront-preview' into vc/http-only-storefront-preview-samesite
2 parents 97e82af + 580b9e0 commit 559174a

3 files changed

Lines changed: 10 additions & 4 deletions

File tree

packages/commerce-sdk-react/src/constant.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
export const IFRAME_HOST_ALLOW_LIST = Object.freeze([
1212
'https://runtime.commercecloud.com',
1313
'https://runtime-admin-staging.mobify-storefront.com',
14-
'https://runtime-admin-preview.mobify-storefront.com'
14+
'https://runtime-admin-preview.mobify-storefront.com',
15+
'https://runtime-admin-soak.mobify-storefront.com',
16+
'https://runtime-admin-testing.mobify-storefront-staging.com'
1517
])
1618

1719
export const SLAS_SECRET_WARNING_MSG =

packages/pwa-kit-runtime/src/ssr/server/constants.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,7 @@ export const STOREFRONT_PREVIEW_CTX_COOKIE = '__Host-pwakit_preview_ctx'
6363
export const STOREFRONT_PREVIEW_PARENT_ALLOW_LIST = Object.freeze([
6464
'https://runtime.commercecloud.com',
6565
'https://runtime-admin-staging.mobify-storefront.com',
66-
'https://runtime-admin-preview.mobify-storefront.com'
66+
'https://runtime-admin-preview.mobify-storefront.com',
67+
'https://runtime-admin-soak.mobify-storefront.com',
68+
'https://runtime-admin-testing.mobify-storefront-staging.com'
6769
])

packages/pwa-kit-runtime/src/utils/middleware/security.test.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,13 @@ describe('Content-Security-Policy enforcement', () => {
6060
defaultPwaKitSecurityHeaders({}, res, () => {})
6161
res.setHeader(CSP, '')
6262
// The runtime-admin host list mirrors STOREFRONT_PREVIEW_PARENT_ALLOW_LIST
63-
// so Storefront Preview from prod, staging, and preview RA all work.
63+
// so Storefront Preview from every trusted RA environment works.
6464
const ra =
6565
'https://runtime.commercecloud.com ' +
6666
'https://runtime-admin-staging.mobify-storefront.com ' +
67-
'https://runtime-admin-preview.mobify-storefront.com'
67+
'https://runtime-admin-preview.mobify-storefront.com ' +
68+
'https://runtime-admin-soak.mobify-storefront.com ' +
69+
'https://runtime-admin-testing.mobify-storefront-staging.com'
6870
expectDirectives([
6971
`connect-src 'self' ${ra} *.salesforce-scrt.com`,
7072
`frame-ancestors ${ra}`,

0 commit comments

Comments
 (0)