def OPTIONS(self):
    cherrypy.response.headers['Access-Control-Allow-Credentials'] = True
cherrypy.response.headers['Access-Control-Allow-Origin'
    ] = cherrypy.request.headers['ORIGIN']
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()
Динамический URL с CherryPY MethodDispatcher