Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save saratonite/6552d66cb72d18c45ce9612f4af3e0b8 to your computer and use it in GitHub Desktop.
Save saratonite/6552d66cb72d18c45ce9612f4af3e0b8 to your computer and use it in GitHub Desktop.
ASP.net core set response headers
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