Content-Disposition:attachment not triggering download dialog

I’ve encountered some unexpected behavior when trying to create a file download functionality on my NodeJS server.
I have a REST (express) API that calls for some export data function, which creates a CSV file on the server and uses'path/to/file') to trigger the download.
Response headers include