I am hosting a simple html file on localhost, I want to force google chrome browser to download file instead of opening it. For the same I've used download attribute in anchor tag, but it is not supported yet.
Is there any setting in Apache Tomcat 8 for adding some thing in HTTP response header for that particular file.
<div><a href="mpo.mpo" download>Image mpo file type</a></div>
Did you try setting these headers in the response:
If you really haven't created any kind of servlet/controller to receive the request you might need to configure a filter: http://tomcat.apache.org/tomcat-8.0-doc/config/filter.html
You can find a lot of information here too: Set CORS header in Tomcat