How to set response filename without forcing “save as” dialog October 27, 2022 by Tarik The correct way could be: Content-Disposition: inline; filename="myfile.txt"