mirror of
https://codeberg.org/yeentown/barkey
synced 2024-12-28 16:21:06 +00:00
fix(backend): allow fetchSummaryFromProxy, trueMail to access local addresses
This commit is contained in:
parent
7b3e3f8e25
commit
776f6fd1f5
2 changed files with 2 additions and 1 deletions
|
@ -312,6 +312,7 @@ export class EmailService {
|
|||
Accept: 'application/json',
|
||||
Authorization: truemailAuthKey,
|
||||
},
|
||||
isLocalAddressAllowed: true,
|
||||
});
|
||||
|
||||
const json = (await res.json()) as {
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue