This commit is contained in:
Vins 2024-02-20 14:16:17 +01:00
parent fe657129a7
commit ba667f73f5

View File

@ -35,7 +35,8 @@ export default class OfficeRibController extends ApiController {
try { try {
const file = await this.officeRibService.getByUid(officeId, fileName!); const file = await this.officeRibService.getByUid(officeId, fileName!);
response.attachment(fileName!); response.attachment(fileName!);
response.setHeader("Access-Control-Expose-Headers", "Content-Disposition");
response.send(file.Body); response.send(file.Body);
} catch (error) { } catch (error) {
this.httpInternalError(response, error); this.httpInternalError(response, error);