You can use software like https://serveo.net to assign a temporary domain to access your local files through a web server.
Either way, exposing local files to an internet proxy just to open them in a browser is overkill. Lots of script runtimes come with their own lightweight HTTP servers nowadays. For example, I use Python's with "py -m http.server".