I am using nodejs and expressjs. I wonder if there is something like request.headers.protocol in the clientRequest object. I would like to build the baseUrl for
request.headers.protocol
This worked for me:
req.headers['x-forwarded-proto']
Hope this helped,
E