code: def allow_cross_origin_requests():
      """True if cross-origin requests are allowed.
  
      We only allow cross-origin requests when CORS protection has been disabled
      with server.enableCORS=False or if using the Node server. When using the
      Node server, we have a dev and prod port, which count as two origins.
  
      """
      return not config.get_option(
          "server.enableCORS"
      ) or config.get_option("global.developmentMode")
  
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 a global function with example usage: allow_cross_origin_requests() and returns: unknown