how to set content-disposition = attachment via javascript?

Content-Disposition is a response header, ie. the server must return it. You can’t achieve this with client-side javascript.

Leave a Comment