also check for X-Forwarded-Host to detect swagger basepath