Add secure context loader that require https even when redirecting.