fix(backend): allow fetchSummaryFromProxy, trueMail to access local addresses

This commit is contained in:
rectcoordsystem 2024-11-13 15:27:17 +09:00 committed by Julia Johannesen
parent 7b3e3f8e25
commit 776f6fd1f5
No known key found for this signature in database
GPG key ID: 4A1377AF3E7FBC46
2 changed files with 2 additions and 1 deletions

View file

@ -312,6 +312,7 @@ export class EmailService {
Accept: 'application/json',
Authorization: truemailAuthKey,
},
isLocalAddressAllowed: true,
});
const json = (await res.json()) as {

View file

@ -170,6 +170,6 @@ export class UrlPreviewService {
contentLengthRequired: meta.urlPreviewRequireContentLength,
});
return this.httpRequestService.getJson<SummalyResult>(`${proxy}?${queryStr}`);
return this.httpRequestService.getJson<SummalyResult>(`${proxy}?${queryStr}`, 'application/json, */*', undefined, true);
}
}