Home > Software design >  Hide HTTPS warning when trying to download files over HTTP with Edge
Hide HTTPS warning when trying to download files over HTTP with Edge

Time:12-11

public class FilesController : ControllerBase
        {        
            [HttpGet]
            [Route("api/Files/DownloadFile/{ProductID}/{FileName}/{UserID}")]
            public FileResult DownloadFile(int ProductID, string FileName, int UserID)
            {
              return File(fileBytes, System.Net.Mime.MediaTypeNames.Application.Octet);
            }
    }

Hi Everyone, I'm using API to download files.In my blazor server app (client) , when the user tries to download any file such as .xlsx or .ppt files , it works in Chrome and Firefox , but in case of Microsoft Edge, it gives me "pptx file can't be downloaded securely".

My question , there are any configurations that I can add in the app.settings or web.config to bypass the SSL/TLS problem?

Open to Check the Error Message

CodePudding user response:

The answer is to use SSL/TLS to secure the communications between the API and blazor server app (client-side). In other words,convert HTTP (port 80) to HTTPS (port 443).

  • Related