move code into public helper
add method that returns if a given domains supports https
only use https if domain supports it and component requests it