Add request interception handler
Compare changes
Files
5+ 13
− 3
@@ -26,6 +26,9 @@ program
@@ -35,13 +38,13 @@ program
@@ -49,7 +52,7 @@ let dir = process.cwd();
@@ -104,7 +107,14 @@ if (typeof input === "string") {
Adds a handler for requests, allow for more fine grained control over paths / url access.
--blockLocal
blocks local requests (automatic for remote html pages)--blockRemote
blocks remote requests--allowedPath
allows a specific local path (highly recommended for servers)--allowedDomain
block access to remote files other than at a specific domain (i.e. google fonts domain)