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:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user