You are here: Home / LBN / Up2date / Core Linux / BastionLinux 36 / python3-cherrypy-cors-1.7.0-1.lbn36.noarch

python3-cherrypy-cors-1.7.0-1.lbn36.noarch

Package Attributes
RPM  python3-cherrypy-cors-1.7.0-1.lbn36.noarch.rpm Architecture  noarch Size  21883 Created  2025/05/19 12:49:45 UTC
Package Specification
Summary CORS handling as a cherrypy tool.
Group Unspecified
License ZPL
Home Page https://pypi.org/project/cherrypy-cors
Description

CORS support for CherryPy

In a nutshell In your application, either install the tool globally. import cherrypy_cors cherrypy_cors.install() Or add it to your application explicitly. import cherrypy_cors app = cherrypy.tree.mount(...) app.toolboxes['cors'] = cherrypy_cors.tools Then, enable it in your cherrypy config. For example, to enable it for all static resources. config = { '/static': { 'tools.staticdir.on': True, 'cors.expose.on': True, } } See simple-example for a runnable example.

Requires
rpmlib(PayloadFilesHavePrefix)  
rpmlib(PayloadIsZstd)  
rpmlib(PartialHardlinkSets)  
rpmlib(CompressedFileNames)  
rpmlib(FileDigests)  
Provides
python-cherrypy-cors
python3-cherrypy-cors
python3.10-cherrypy-cors
python3.10dist(cherrypy-cors)
python3dist(cherrypy-cors)
Obsoletes
python-cherrypy-cors

Document Actions