code: def set_default_headers(self):
      # Avoid a circular import
      from streamlit.web.server import allow_cross_origin_requests
  
      if allow_cross_origin_requests():
          self.set_header("Access-Control-Allow-Origin", "*")
  
file_path: streamlit/lib/streamlit/web/server/stats_request_handler.py
imports: from typing import List
  import tornado.web
  from streamlit.proto.openmetrics_data_model_pb2 import GAUGE
  from streamlit.proto.openmetrics_data_model_pb2 import MetricSet
  from streamlit.runtime.stats import CacheStat, StatsManager
  from streamlit.web.server.server_util import emit_endpoint_deprecation_notice
label_desc: Use image node_id 2 for calling the StatsRequestHandler obj's underlying member method code with example usage: obj.set_default_headers() without return types