class_docstr: Subclass of falcon-cors CORS class to return a custom middleware.
class_docstr_tok: ["Subclass","of","falcon-cors","CORS","class","to","return","a","custom","middleware","."]
code: def middleware(self):
      return MyCORSMiddleware(self)
  
file_path: orion/src/orion/serving/webapi.py
imports: import logging
  import falcon
  from falcon_cors import CORS, CORSMiddleware
  from orion.serving.benchmarks_resource import BenchmarksResource
  from orion.serving.experiments_resource import ExperimentsResource
  from orion.serving.plots_resources import PlotsResource
  from orion.serving.runtime import RuntimeResource
  from orion.serving.storage_resource import StorageResource
  from orion.serving.trials_resource import TrialsResource
label_desc: Use image node_id 1 for calling the MyCORS obj's underlying member method code with example usage: obj.middleware() and returns: MyCORSMiddleware