cherrypy.response.headers['Access-Control-Allow-Methods'] = 'GET, PUT, DELETE'
cherrypy.response.headers['Access-Control-Allow-Headers'
    ] = cherrypy.request.headers['ACCESS-CONTROL-REQUEST-HEADERS']


class Root(object):
    pass
root = Root()
root.items = Items()
conf = {'global': {'server.socket_host': '0.0.0.0', 'server.socket_port': 
    8000}, '/': {'request.dispatch': cherrypy.dispatch.MethodDispatcher()}}
cherrypy.quickstart(root, '/', conf)
Динамический URL с CherryPY MethodDispatcher