I'm trying to realise the idea of waldalla to build a proxy server in a Google Chrome extension.
I understand how to code in a Chrome extension the server-facing side of the problem, i.e. sending HTTP requests and receiving responses, but I don't know how to do the client-facing side, i.e. listening on a defined port for HTTP requests from outside the browser.
I have read up on Chrome's Native Messaging API. However, from what I can see it is used for communication via stdin/stdout, not via HTTP.
So, how can I listen to HTTP requests in a Google Chrome extension? And how do I set the permissions for this in the extension's manifest.json
file?