code: def initialize(self):
      # Make a copy of the allowedOrigins list, since we might modify it later:
      self._allowed_origins = _DEFAULT_ALLOWED_MESSAGE_ORIGINS.copy()
  
      if (
          config.get_option("global.developmentMode")
          and "http://localhost" not in self._allowed_origins
      ):
          # Allow messages from localhost in dev mode for testing of host <-> guest communication
          self._allowed_origins.append("http://localhost")
  
imports: import os
  import tornado.web
  from streamlit import config, file_util
  from streamlit.logger import get_logger
  from streamlit.runtime.runtime_util import serialize_forward_msg
  from streamlit.web.server.server_util import emit_endpoint_deprecation_notice
label_desc: Use image node_id 1 for calling the HostConfigHandler obj's underlying member method code with example usage: obj.initialize() without return types