Ensure redirects use https when secure is true for node context loader.