diff --git a/src/pretix/presale/signals.py b/src/pretix/presale/signals.py index 685648c9ef..3eeea867cd 100644 --- a/src/pretix/presale/signals.py +++ b/src/pretix/presale/signals.py @@ -264,8 +264,8 @@ Arguments: ``position``, ``request`` This signal allows you to override fields of the questions form that is presented during checkout and by default only asks for the questions configured in the backend. You are supposed to return a dictionary of dictionaries with globally unique keys. The value-dictionary should contain one or -more of the following keys: ``label``, ``initial``, ``disabled``, ``validators``. The key of the -dictionary should be the form field name for system fields (e.g. ``company``), or the question's +more of the following keys: ``label``, ``initial``, ``disabled``, ``validators``. The key of the +dictionary should be the form field name for system fields (e.g. ``company``), or the question's ``identifier`` for user-defined questions. The ``position`` keyword argument will contain a ``CartPosition`` or ``OrderPosition`` object. diff --git a/vite.config.ts b/vite.config.ts index b0578d76c3..98010fe9fc 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -31,6 +31,9 @@ export default defineConfig({ // Allow serving source files from sibling plugin directories allow: ['src', ...pluginDirs], }, + cors: { + origin: /^https?:\/\/(?:(?:[^:]+\.)?localhost|127\.0\.0\.1|\[::1\]|[^:]+\.pretix\.dev)(?::\d+)?$/ + }, }, build: { manifest: true,