diff --git a/src/Controllers/CSSGeneratorController.php b/src/Controllers/CSSGeneratorController.php index 9c2b9ac..03fe1e0 100644 --- a/src/Controllers/CSSGeneratorController.php +++ b/src/Controllers/CSSGeneratorController.php @@ -77,6 +77,7 @@ public function __invoke(ServerRequestInterface $request, ResponseInterface $res ->withHeader('Content-Type', 'text/css; charset=UTF-8') ->withHeader('Cache-Control', $httpCacheTime > 0 ? 'max-age='.$httpCacheTime.', public' : 'no-cache') ->withHeader('Pragma', $httpCacheTime > 0 ? 'public' : 'no-cache') + ->withHeader('Access-Control-Allow-Origin', '*') ->write($cssCode); }