AlphaLars
AlphaLars11mo ago

I have a question regarding securely

I have a question regarding securely handling user files and restricting access to user files, but offering them to download if you have the permission - signed url & time-limited urls. Are there any tutorials on it? I mean I can create a public url for a file, but cant delete again. Thanks in advance
1 Reply
Gaurav Chadha
Gaurav Chadha11mo ago
Hi @AlphaLars, To secure your API and risrict access you can use Authorization Header. You can find all the methods to securely handling your API here - https://docs.buildship.com/tutorials/secure-api. Also, since you mentined about crating a public URL to view but node delete it again. You can restrict DELETE method in your API, you'll require to implement this in the node's logic.