Hacker News new | ask | show | jobs
by immibis 352 days ago
CGI-based protocols transfer a bunch of metadata from the front end - such as the client IP address - without any injection or double-parsing vulnerabilities. Using HTTP twice means having more code and a greater security risk.

By the way if you're using nginx, then instead of FastCGI you might prefer SCGI, which does one connection per request and no multiplexing, so it's much simpler.

1 comments

I always wished that FastCGI's Filter & Authorizer roles became popular, it's a nice separation of duties