1
0
mirror of https://github.com/typemill/typemill.git synced 2025-07-30 19:00:32 +02:00

v2.1.0 add data to csp

This commit is contained in:
trendschau
2024-01-04 21:01:40 +01:00
parent 766f799f44
commit af5f633aa7

View File

@@ -29,7 +29,7 @@ class CspHeadersMiddleware implements MiddlewareInterface
# add the custom headers to the response after everything is processed
$response = $handler->handle($request);
$whitelist = ["'unsafe-inline'", "'unsafe-eval'", "'self'", "*.youtube-nocookie.com", "*.youtube.com"];
$whitelist = ["'unsafe-inline'", "'unsafe-eval'", "'self'", "data:", "*.youtube-nocookie.com", "*.youtube.com"];
$cspdomains = isset($this->settings['cspdomains']) ? trim($this->settings['cspdomains']) : false;