mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +00:00
@@ -54,6 +54,7 @@ from pretix.base.models import (
|
||||
from pretix.base.services.cart import get_fees
|
||||
from pretix.base.templatetags.money import money_filter
|
||||
from pretix.helpers.cookies import set_cookie_without_samesite
|
||||
from pretix.multidomain.middlewares import get_cookie_domain
|
||||
from pretix.multidomain.urlreverse import eventreverse
|
||||
from pretix.presale.signals import question_form_fields
|
||||
|
||||
@@ -468,7 +469,7 @@ def iframe_entry_view_wrapper(view_func):
|
||||
locale,
|
||||
max_age=max_age,
|
||||
expires=(datetime.utcnow() + timedelta(seconds=max_age)).strftime('%a, %d-%b-%Y %H:%M:%S GMT'),
|
||||
domain=settings.SESSION_COOKIE_DOMAIN
|
||||
domain=get_cookie_domain(request)
|
||||
)
|
||||
return resp
|
||||
|
||||
|
||||
@@ -40,6 +40,7 @@ from django.utils.http import url_has_allowed_host_and_scheme
|
||||
from django.views.generic import View
|
||||
|
||||
from pretix.helpers.cookies import set_cookie_without_samesite
|
||||
from pretix.multidomain.middlewares import get_cookie_domain
|
||||
|
||||
from .robots import NoSearchIndexViewMixin
|
||||
|
||||
@@ -62,7 +63,7 @@ class LocaleSet(NoSearchIndexViewMixin, View):
|
||||
max_age=max_age,
|
||||
expires=(datetime.utcnow() + timedelta(seconds=max_age)).strftime(
|
||||
'%a, %d-%b-%Y %H:%M:%S GMT'),
|
||||
domain=settings.SESSION_COOKIE_DOMAIN
|
||||
domain=get_cookie_domain(request)
|
||||
)
|
||||
|
||||
return resp
|
||||
|
||||
Reference in New Issue
Block a user