Skip to content

Commit

Permalink
Merge ad7e719 into 3f49796
Browse files Browse the repository at this point in the history
  • Loading branch information
haringsrob committed Feb 22, 2022
2 parents 3f49796 + ad7e719 commit eec9f42
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Http/Controllers/Front/GlideController.php
Expand Up @@ -9,6 +9,9 @@ class GlideController
{
public function __invoke($path, Application $app)
{
return $app->make(Glide::class)->render($path);
/** @var \Symfony\Component\HttpFoundation\StreamedResponse $res */
$res = $app->make(Glide::class)->render($path);
$res->headers->add(['Access-Control-Allow-Origin' => '*']);
return $res;
}
}

0 comments on commit eec9f42

Please sign in to comment.