Skip to content

Commit

Permalink
The Access-Control-Allow-Origin HTTP header is sent with a generate…
Browse files Browse the repository at this point in the history
…d CSS too
  • Loading branch information
Finesse committed Feb 9, 2018
1 parent 4faecfd commit 042a595
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Controllers/CSSGeneratorController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 042a595

Please sign in to comment.