mirror of
https://github.com/pretix/pretix.git
synced 2026-11-08 01:06:40 +00:00
add missing quotes around 'unsafe-eval' cors value
This commit is contained in:
1 parent
8fc2e78a58
commit
b95847c395
1 file changed
+1
-1
@@ -283,7 +283,7 @@ class SecurityMiddleware(MiddlewareMixin):
|
||||
'script-src': ["{static}"] + (["http://localhost:5173", "ws://localhost:5173"] if settings.VITE_DEV_MODE else []),
|
||||
'object-src': ["'none'"],
|
||||
'frame-src': ['{static}'],
|
||||
'style-src': ["{static}", "{media}"] + (["unsafe-inline"] if settings.VITE_DEV_MODE else []),
|
||||
'style-src': ["{static}", "{media}"] + (["'unsafe-inline'"] if settings.VITE_DEV_MODE else []),
|
||||
'connect-src': ["{dynamic}", "{media}"] + (["http://localhost:5173", "ws://localhost:5173"] if settings.VITE_DEV_MODE else []),
|
||||
'img-src': ["{static}", "{media}", "data:"] + img_src,
|
||||
'font-src': ["{static}"] + list(font_src),
|
||||
|
||||
Reference in new issue
Block a user