Skip to content

Commit

Permalink
[Bug]: Fix Access-Control-Allow-Origin in AssetController (#689)
Browse files Browse the repository at this point in the history
  • Loading branch information
kingjia90 authored Sep 13, 2024
1 parent 5ea0e1d commit a239604
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/Admin/Asset/AssetController.php
Original file line number Diff line number Diff line change
Expand Up @@ -1232,7 +1232,7 @@ public function getImageThumbnailAction(Request $request): BinaryFileResponse|Js
fpassthru($stream);
}, 200, [
'Content-Type' => $thumbnail->getMimeType(),
'Access-Control-Allow-Origin', '*',
'Access-Control-Allow-Origin' => '*',
]);

$this->addThumbnailCacheHeaders($response);
Expand Down

0 comments on commit a239604

Please sign in to comment.