updated logic, since we are only using this in prod, also removed from env.default
This commit is contained in:
Родитель
71e8422b31
Коммит
81e1a91712
|
@ -40,10 +40,6 @@ X_FRAME_OPTIONS=DENY
|
|||
XSS_PROTECTION=True
|
||||
XROBOTSTAG_ENABLED=False
|
||||
|
||||
# Apple Pay config:
|
||||
APPLE_PAY_DOMAIN_ASSOCIATION_KEY_FOUNDATION=
|
||||
APPLE_PAY_DOMAIN_ASSOCIATION_KEY_MOZFEST=
|
||||
|
||||
# Basket config:
|
||||
|
||||
# See the Basket client docs https://basket-client.readthedocs.io/en/latest/install.html
|
||||
|
|
|
@ -29,7 +29,7 @@ def apple_pay_domain_association_view(request):
|
|||
"""
|
||||
Returns key needed for Apple Pay domain association/verification.
|
||||
"""
|
||||
if "mozillafestival" or "mozfest" in Site.find_for_request(request).hostname:
|
||||
if Site.find_for_request(request).hostname == "www.mozillafestival.org":
|
||||
verification_key = settings.APPLE_PAY_DOMAIN_ASSOCIATION_KEY_MOZFEST
|
||||
else:
|
||||
verification_key = settings.APPLE_PAY_DOMAIN_ASSOCIATION_KEY_FOUNDATION
|
||||
|
|
Загрузка…
Ссылка в новой задаче