widget uses protocol (http or https) of window it's called from.