mirror of
https://github.com/filegator/filegator.git
synced 2025-08-06 14:36:41 +02:00
Basic file preview
This commit is contained in:
@@ -78,6 +78,19 @@ class DownloadController
|
||||
'binary'
|
||||
);
|
||||
|
||||
// @codeCoverageIgnoreStart
|
||||
if (APP_ENV == 'development') {
|
||||
$streamedResponse->headers->set(
|
||||
'Access-Control-Allow-Origin',
|
||||
$request->headers->get('Origin')
|
||||
);
|
||||
$streamedResponse->headers->set(
|
||||
'Access-Control-Allow-Credentials',
|
||||
'true'
|
||||
);
|
||||
}
|
||||
// @codeCoverageIgnoreEnd
|
||||
|
||||
// close session so we can continue streaming, note: dev is single-threaded
|
||||
$this->session->save();
|
||||
|
||||
|
Reference in New Issue
Block a user