ApolloFiles / Apollo

You know Google Drive, Picasa, Mega.nz and Plex? Somewhat a mix of them with the benefit of being self-hosted
GNU General Public License v3.0
4 stars 1 forks source link

Use idempotency token of some sort for write actions #43

Open SpraxDev opened 2 years ago

SpraxDev commented 2 years ago

Using an csrf token would probably work in the frontend. As long as it is properly invalidated after a request. But additional care is needed when the frontend allows for a retry with a new csrf token as this request would still result in a valid response but without any write being performed (because Apollo would remember the idempotency token, but not the changed csrf token).