Skip to content

Commit 497a4c9

Browse files
committed
W-21432256 cleanup content security policy headers
1 parent 5494666 commit 497a4c9

File tree

3 files changed

+21
-9
lines changed
  • packages
    • pwa-kit-create-app/assets
    • template-retail-react-app/app

3 files changed

+21
-9
lines changed

packages/pwa-kit-create-app/assets/bootstrap/js/overrides/app/ssr.js.hbs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,9 @@ const {handler} = runtime.createHandler(options, (app) => {
351351
// Default source for product images - replace with your CDN
352352
'*.commercecloud.salesforce.com',
353353
'*.demandware.net',
354-
'*.adyen.com' // Payment gateways
354+
'*.adyen.com', // Payment gateways
355+
'pay.google.com', // Google Pay payment handler icon
356+
'www.gstatic.com' // optional, if icon is on gstatic
355357
],
356358
'script-src': [
357359
// Used by the service worker in /worker/main.js
@@ -383,8 +385,10 @@ const {handler} = runtime.createHandler(options, (app) => {
383385
'*.paypal.com',
384386
'pay.google.com',
385387
'payments.google.com',
386-
'google.com',
387-
'www.google.com'
388+
'google.com/pay',
389+
'google.com/pay/',
390+
'www.google.com/pay',
391+
'www.google.com/pay/'
388392
],
389393
'frame-src': [
390394
// Allow frames from Salesforce site.com (Needed for MIAW)

packages/pwa-kit-create-app/assets/templates/@salesforce/retail-react-app/app/ssr.js.hbs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,9 @@ const {handler} = runtime.createHandler(options, (app) => {
351351
// Default source for product images - replace with your CDN
352352
'*.commercecloud.salesforce.com',
353353
'*.demandware.net',
354-
'*.adyen.com' // Payment gateways
354+
'*.adyen.com', // Payment gateways
355+
'pay.google.com', // Google Pay payment handler icon
356+
'www.gstatic.com' // optional, if icon is on gstatic
355357
],
356358
'script-src': [
357359
// Used by the service worker in /worker/main.js
@@ -383,8 +385,10 @@ const {handler} = runtime.createHandler(options, (app) => {
383385
'*.paypal.com',
384386
'pay.google.com',
385387
'payments.google.com',
386-
'google.com',
387-
'www.google.com'
388+
'google.com/pay',
389+
'google.com/pay/',
390+
'www.google.com/pay',
391+
'www.google.com/pay/'
388392
],
389393
'frame-src': [
390394
// Allow frames from Salesforce site.com (Needed for MIAW)

packages/template-retail-react-app/app/ssr.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,9 @@ const {handler} = runtime.createHandler(options, (app) => {
362362
// Default source for product images - replace with your CDN
363363
'*.commercecloud.salesforce.com',
364364
'*.demandware.net',
365-
'*.adyen.com'
365+
'*.adyen.com',
366+
'pay.google.com', // Google Pay payment handler icon
367+
'www.gstatic.com' // optional, if icon is on gstatic
366368
],
367369
'script-src': [
368370
// Used by the service worker in /worker/main.js
@@ -392,8 +394,10 @@ const {handler} = runtime.createHandler(options, (app) => {
392394
'*.paypal.com',
393395
'pay.google.com',
394396
'payments.google.com',
395-
'google.com',
396-
'www.google.com'
397+
'google.com/pay',
398+
'google.com/pay/',
399+
'www.google.com/pay',
400+
'www.google.com/pay/'
397401
],
398402
'frame-src': [
399403
// Allow frames from Salesforce site.com (Needed for MIAW)

0 commit comments

Comments
 (0)