Response.ContentType = "image/x-png";
Response.AddHeader("Content-Disposition", string.Format("attachment;filename={0};", fileName));
Step 1. Install cors from NeGet Step 2. Enable cors in config using System; using System.Collections.Generic; using System.Linq; using ...
Response.ContentType = "image/x-png";
Response.AddHeader("Content-Disposition", string.Format("attachment;filename={0};", fileName));