Skip to content

Commit

Permalink
feat: provide necessary scripts in order to load the amazon button pr…
Browse files Browse the repository at this point in the history
…operly
  • Loading branch information
amihajlovski committed Nov 7, 2023
1 parent eb597fe commit 09f34f1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions overrides/app/ssr.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,16 @@ const {handler} = runtime.createHandler(options, (app) => {
'data:',
'*.adyen.com',
'*.paypal.com',
'*.media-amazon.com',
'*.payments-amazon.com',
'https://www.paypalobjects.com/js-sdk-logos/2.2.7/paypal-blue.svg'
],
'script-src': [
"'self'",
"'unsafe-eval'",
'storage.googleapis.com',
'*.paypal.com',
'*.payments-amazon.com',
'https://x.klarnacdn.net/kp/lib/v1/api.js',
'https://static-eu.payments-amazon.com/checkout.js',
'https://sandbox.src.mastercard.com/sdk/srcsdk.mastercard.js',
Expand All @@ -73,6 +76,7 @@ const {handler} = runtime.createHandler(options, (app) => {
"'self'",
'api.cquotient.com',
'*.adyen.com',
'*.amazon.com',
'https://www.sandbox.paypal.com/xoplatform/logger/api/logger?disableSetCookie=true'
],
'frame-src': ["'self'", '*.adyen.com', '*.paypal.com'],
Expand Down

0 comments on commit 09f34f1

Please sign in to comment.