If you are not able to download the excel in Firefox and where it is working fine in Chrome and IE then have a look at below code. To work in Firefox Excel Issue Just add below code in headersheader(“Content-type: application/vnd.ms-excel”); See below for full code header(“Content-disposition: attachment;filename=example.xls”);header(“Content-type: application/vnd.ms-excel”);header(“Pragma: public”);header(“Expires: 0”);header(“Cache-Control: must-revalidate, post-check=0, pre-check=0”);header(“Cache-Control: private”, […]