How to handle static/media file permission on flask?
Serve your image through Flask instead of your web server, treat it like any other url with permissions. Nginx is obviously a much better choice to serve your static files but it won't integrate with Flask.
I've created an application in which media files(files that are uploaded by users, not css/js) are served statically by another server on the subdomain like: media.example.com/path/to/image.jpg. How can I limit access to the images so that only certain people who are logged in and have permission can see them?
Please note that persmissions on page in which an image is displayed are working but I want to further limit access to the images themselves so image urls can't be shared.
Thanks