Custom URL protocol in Windows to serve HTML content
- by Jen
This question addresses how to register a custom URL protocol to launch an application in response to a link, but I want my handler to serve dynamic content.
Essentially, I'm looking to create a web application that runs on the user's machine instead of a web server. I could set up a localhost, but I want to use a "friendly" URL format that the user can reference elsewhere, e.g. a hypothetical cats protocol:
cats:fluffy/cheeseburger-consumption-stats
How can I accomplish this? Also, do you see any pitfalls with this approach, such as security warnings from browsers?
Thanks!