Expand description
The PAC script that makes http://<alias>.<suffix>/ reach this daemon.
A PAC routes by hostname and never resolves it, so the suffix does not have to be a real TLD and no DNS server or hosts-file entry is needed. That is why this works where mkcert-style setups reach for dnsmasq. It also leaves the address bar alone, unlike a declarativeNetRequest redirect, which rewrites the URL to 127.0.0.1 and loses the origin the user asked for.
Functionsยง
- script
- Build the script. The suffix is validated rather than escaped: it lands inside a JavaScript string literal, and a label is the only shape that cannot break out of one.