Created
May 30, 2017 06:14
-
-
Save saratonite/6552d66cb72d18c45ce9612f4af3e0b8 to your computer and use it in GitHub Desktop.
ASP.net core set response headers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Result.Content.Headers.Add("Content-Disposition", "attachment; filename=" + FileName); | |
Result.Content.Headers.Add("Access-Control-Expose-Headers", "filename"); | |
Result.Content.Headers.Add("filename", FileName); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment