permits img-src from external website, other solution is to store base64 image of user in DB

note: if we need to keep this security, we need to store all user's images (blob_storage can be a good candidate)
This commit is contained in:
Edouard Vanbelle
2026-05-26 01:50:59 +02:00
parent b0c5e7827e
commit 4a5e9a67ca
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -326,7 +326,7 @@ async fn get_current_user(
/// DTO for updating the user's profile image.
#[derive(Debug, Deserialize, ToSchema)]
pub struct UpdateUserImageDto {
/// New image URL (https/http) or data URI (data:image/…;base64,…). Null to clear.
/// Image URL (https/http) or data URI (data:image/png|webp|jpeg;base64,…). Null to clear.
pub image: Option<String>,
}