use same protocol as page to load on http[s]