This commit is contained in:
Martin Gross
2026-08-28 15:38:02 +02:00
parent 7eec8186cd
commit e8abb8ca7a
2 changed files with 5 additions and 2 deletions
+2 -2
View File
@@ -264,8 +264,8 @@ Arguments: ``position``, ``request``
This signal allows you to override fields of the questions form that is presented during checkout 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 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 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 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 dictionary should be the form field name for system fields (e.g. ``company``), or the question's
``identifier`` for user-defined questions. ``identifier`` for user-defined questions.
The ``position`` keyword argument will contain a ``CartPosition`` or ``OrderPosition`` object. The ``position`` keyword argument will contain a ``CartPosition`` or ``OrderPosition`` object.
+3
View File
@@ -31,6 +31,9 @@ export default defineConfig({
// Allow serving source files from sibling plugin directories // Allow serving source files from sibling plugin directories
allow: ['src', ...pluginDirs], allow: ['src', ...pluginDirs],
}, },
cors: {
origin: /^https?:\/\/(?:(?:[^:]+\.)?localhost|127\.0\.0\.1|\[::1\]|[^:]+\.pretix\.dev)(?::\d+)?$/
},
}, },
build: { build: {
manifest: true, manifest: true,