[release] v0.9.18

This commit is contained in:
Yann Stepienik 2023-08-10 18:56:23 +01:00
parent 532795e938
commit 60be289c76
3 changed files with 5 additions and 2 deletions

View file

@ -1,3 +1,6 @@
## Version 0.9.18
- Typo with x-forwarded-host
## Version 0.9.17
- Upgraded to Lego 4.13.3 (support for Google Domain)
- Add VerboseForwardHeader to URL Config to allow to transfer more sensitive header to target app

View file

@ -1,6 +1,6 @@
{
"name": "cosmos-server",
"version": "0.9.17",
"version": "0.9.18",
"description": "",
"main": "test-server.js",
"bugs": {

View file

@ -74,7 +74,7 @@ func NewProxy(targetHost string, AcceptInsecureHTTPSTarget bool, VerboseForwardH
req.Header.Set("X-Forwarded-Protocol", originalScheme)
if VerboseForwardHeader {
req.Header.Set("X-Forwarded-Host", req.Header.Get("Host"))
req.Header.Set("X-Forwarded-Host", url.Host)
req.Header.Set("X-Origin-Host", url.Host)
req.Header.Set("Host", url.Host)
req.Header.Set("X-Forwarded-For", utils.GetClientIP(req))