From 0192b33ad4cacda3bdfb4e293eca001c418b30fb Mon Sep 17 00:00:00 2001 From: maureenlholland Date: Fri, 28 Jan 2022 12:21:27 +0000 Subject: [PATCH] Conditionally include pocket dev connect url --- bedrock/settings/base.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/bedrock/settings/base.py b/bedrock/settings/base.py index fe111e3f12..34e111c7e1 100644 --- a/bedrock/settings/base.py +++ b/bedrock/settings/base.py @@ -932,9 +932,9 @@ MOZILLA_INSTAGRAM_ACCOUNTS = { FXA_ENDPOINT = config("FXA_ENDPOINT", default="https://accounts.stage.mozaws.net/" if DEV else "https://accounts.firefox.com/") # Google Play and Apple App Store settings -from .appstores import GOOGLE_PLAY_FIREFOX_LINK_MOZILLAONLINE # noqa -from .appstores import GOOGLE_PLAY_FIREFOX_LINK_UTMS # noqa -from .appstores import ( +from .appstores import GOOGLE_PLAY_FIREFOX_LINK_MOZILLAONLINE # noqa: E402, F401 +from .appstores import GOOGLE_PLAY_FIREFOX_LINK_UTMS # noqa: E402, F401 +from .appstores import ( # noqa: E402, F401 ADJUST_FIREFOX_URL, ADJUST_FOCUS_URL, ADJUST_KLAR_URL, @@ -1226,9 +1226,10 @@ CSP_CONNECT_SRC = CSP_DEFAULT_SRC + [ "cdn.cookielaw.org", "privacyportal.onetrust.com", FXA_ENDPOINT, - "com-getpocket-prod1.mini.snplow.net", # Dev Pocket Snowplow - "getpocket.com", # Prod Pocket Snowplow + "getpocket.com", # Pocket Snowplow ] +if DEV: + CSP_CONNECT_SRC.append("com-getpocket-prod1.mini.snplow.net") CSP_REPORT_ONLY = config("CSP_REPORT_ONLY", default="false", parser=bool) CSP_REPORT_URI = config("CSP_REPORT_URI", default="") or None