Error: [ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_DISPOSITION] error: [error_response_headers_multiple_content_disposition] error: [error_response_headers_multiple_content_disposition] error;

Cause: The file name of the download contains a comma [,], which causes the browser to think that multiple request headers are set.

EG: let fileName = ‘file-name(x,y).docx’; response(‘content-disposition’, attachment; filename=${fileName}); So the browser might parse: Response (‘ Content-disposition ‘, ‘attachment; filename=file-name(x’, ‘y).docx’);

Solution: Solution 1: Replace [,] with another character fileName = filename.replace (/,/g, ‘_’); [‘content-disposition’, attachment; filename=”${fileName}”);

If improper place please correct!