I am not sure how you distinguish insecure HTTP/ HTTPS requests.
Generally, using of file:// protocol is not recommended due to security reasons while giving the response for the request that comes to your site which is hosted on the webserver.
If you redirect the request on your system using the file:// protocol then it could leak confidential data and someone could misuse it. They could try accessing other files on your systems and it could also lead to other unwanted issues.
By default, Chromium browsers will not allow using File:// protocol from your site and it will give you errors.
Please refer to this helpful answer.
As a workaround, you could create a virtual directory in the IIS and map the folder with it. Then you could access it using the HTTP or HTTPS protocol.
For more information, please refer to this answer.