How to specify content-type and content-disposition with $.ajax() GET response

后端 未结 2 1508
孤城傲影
孤城傲影 2020-12-21 16:59

I would like to make an async GET request that returns back a document with MIME content type and cause it to bring the browser\'s \'Save\' dialog.

Previously, I us

2条回答
  •  温柔的废话
    2020-12-21 17:27

    That's something the server has to do. There's nothing you can do from the client side that will force an unwilling server to set response headers.

提交回复
热议问题