caddyserver / forwardproxy

Forward proxy plugin for the Caddy web server
Apache License 2.0
582 stars 218 forks source link

Can I us this to add custom request headers? #130

Open digininja opened 1 month ago

digininja commented 1 month ago

I do web testing and for one client I need to add a custom header to all requests to their site, can I configure this to do that for me?

The use case is so I can point all my tools through this proxy and it handles adding the header rather than me having to work out how to do it on a tool by tool basis.

There is no security risk, I know the site, I can use my own CA which is already trusted by my system, cert warnings won't be a problem.

mholt commented 1 month ago

You might be able to do it with the request_header directive?