{"id":28387624,"url":"https://github.com/cherrypy/cherrypy-cors","last_synced_at":"2026-01-20T17:57:23.303Z","repository":{"id":191073784,"uuid":"683886183","full_name":"cherrypy/cherrypy-cors","owner":"cherrypy","description":null,"archived":false,"fork":false,"pushed_at":"2025-05-14T06:53:39.000Z","size":396,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-05-31T00:52:02.659Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cherrypy.png","metadata":{"files":{"readme":"README.rst","changelog":"NEWS.rst","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-08-28T01:47:44.000Z","updated_at":"2025-05-14T06:53:44.000Z","dependencies_parsed_at":"2023-08-28T02:33:16.464Z","dependency_job_id":"b923c8ad-1544-4948-aa7f-547fe2080e45","html_url":"https://github.com/cherrypy/cherrypy-cors","commit_stats":null,"previous_names":["cherrypy/cherrypy-cors"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/cherrypy/cherrypy-cors","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cherrypy%2Fcherrypy-cors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cherrypy%2Fcherrypy-cors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cherrypy%2Fcherrypy-cors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cherrypy%2Fcherrypy-cors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cherrypy","download_url":"https://codeload.github.com/cherrypy/cherrypy-cors/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cherrypy%2Fcherrypy-cors/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262139431,"owners_count":23265150,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-30T18:38:11.539Z","updated_at":"2026-01-20T17:57:23.263Z","avatar_url":"https://github.com/cherrypy.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":".. image:: https://img.shields.io/pypi/v/cherrypy-cors.svg\n   :target: https://pypi.org/project/cherrypy-cors\n\n.. image:: https://img.shields.io/pypi/pyversions/cherrypy-cors.svg\n\n.. image:: https://github.com/cherrypy/cherrypy-cors/actions/workflows/main.yml/badge.svg\n   :target: https://github.com/cherrypy/cherrypy-cors/actions?query=workflow%3A%22tests%22\n   :alt: tests\n\n.. image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json\n    :target: https://github.com/astral-sh/ruff\n    :alt: Ruff\n\n.. image:: https://readthedocs.org/projects/cherrypy-cors/badge/?version=latest\n   :target: https://cherrypy-cors.readthedocs.io/en/latest/?badge=latest\n\n.. image:: https://img.shields.io/badge/skeleton-2025-informational\n   :target: https://blog.jaraco.com/skeleton\n\nCORS support for CherryPy\n\nIn a nutshell\n=============\n\nIn your application, either install the tool globally.\n\n.. code-block:: python\n\n    import cherrypy_cors\n    cherrypy_cors.install()\n\nOr add it to your application explicitly.\n\n.. code-block:: python\n\n    import cherrypy_cors\n    app = cherrypy.tree.mount(...)\n    app.toolboxes['cors'] = cherrypy_cors.tools\n\nThen, enable it in your cherrypy config. For example, to enable it for all\nstatic resources.\n\n.. code-block:: python\n\n    config = {\n        '/static': {\n            'tools.staticdir.on': True,\n            'cors.expose.on': True,\n        }\n    }\n\nSee `simple-example\n\u003chttps://github.com/yougov/cherrypy-cors/blob/master/simple-example.py\u003e`_\nfor a runnable example.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcherrypy%2Fcherrypy-cors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcherrypy%2Fcherrypy-cors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcherrypy%2Fcherrypy-cors/lists"}