How to authorize static files in Laravel with Nginx auth_request
When it is necessary to authenticate and authorize the access of static files, such as downloadable content, images etc, the common approach is to read the file with PHP and return the content. Laravel’s download method also works this way. There is nothing wrong with this approach. However it could lead to some performance issues …
Continue reading “How to authorize static files in Laravel with Nginx auth_request”