mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-26 06:47:17 +10:00
Whitelist Stripe API in the CSP
This commit is contained in:
parent
1b0517ee6c
commit
8e0500fe7a
1 changed files with 2 additions and 1 deletions
|
|
@ -34,6 +34,7 @@ module.exports = (reportUri, enforceSsl, reportOnly) => {
|
|||
const googleFonts = 'https://fonts.googleapis.com/';
|
||||
const stripeJs = 'https://js.stripe.com/';
|
||||
const stripeQ = 'https://q.stripe.com/';
|
||||
const stripeApi = 'https://api.stripe.com/';
|
||||
const sentryApi = 'https://sentry.io/api/';
|
||||
|
||||
const scriptSrc = [self, inline, googleMaps, stripeJs];
|
||||
|
|
@ -52,7 +53,7 @@ module.exports = (reportUri, enforceSsl, reportOnly) => {
|
|||
googleStaticMaps,
|
||||
];
|
||||
|
||||
const connectSrc = [self, sharetribeApi, googleMaps];
|
||||
const connectSrc = [self, sharetribeApi, googleMaps, stripeApi];
|
||||
|
||||
const fontSrc = [self, data, sharetribeAssets, googleStaticFonts];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue