mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-26 06:47:17 +10:00
Allow google.com for analytics assets
This commit is contained in:
parent
4dccbd51ec
commit
71d2c7a17f
1 changed files with 2 additions and 0 deletions
|
|
@ -28,6 +28,7 @@ module.exports = (reportUri, enforceSsl, reportOnly) => {
|
|||
const sharetribeImgix = 'https://sharetribe.imgix.net';
|
||||
const loremPixel = 'https://lorempixel.com';
|
||||
const placeholder = 'https://via.placeholder.com';
|
||||
const google = 'https://www.google.com';
|
||||
const googleAnalytics = 'https://www.google-analytics.com';
|
||||
const googleAnalyticsDoubleClick = 'https://stats.g.doubleclick.net';
|
||||
const googleMaps = 'https://maps.googleapis.com';
|
||||
|
|
@ -65,6 +66,7 @@ module.exports = (reportUri, enforceSsl, reportOnly) => {
|
|||
// Only whitelist Google Analytics URLs when the analytics is
|
||||
// enabled.
|
||||
scriptSrc.push(googleAnalytics);
|
||||
imgSrc.push(google);
|
||||
imgSrc.push(googleAnalytics);
|
||||
imgSrc.push(googleAnalyticsDoubleClick);
|
||||
connectSrc.push(googleAnalytics);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue