Metadata-Version: 2.1
Name: corslib
Version: 0.0.2
Summary: Policy-based CORS support library for web applications
Home-page: http://github.com/zgoda/corslib
Author: Jarek Zgoda
Author-email: jarek.zgoda@gmail.com
License: BSD
Project-URL: Documentation, https://corslib.readthedocs.io/
Project-URL: Source, https://github.com/zgoda/corslib
Project-URL: Issues, https://github.com/zgoda/corslib/issues
Keywords: cors wsgi
Platform: UNKNOWN
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Environment :: Web Environment
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Requires-Python: ~=3.6
Description-Content-Type: text/x-rst
Requires-Dist: dataclasses ; python_version < "3.7"
Provides-Extra: dev
Requires-Dist: ipython ; extra == 'dev'
Requires-Dist: ipdb ; extra == 'dev'
Requires-Dist: wheel ; extra == 'dev'
Requires-Dist: flake8 ; extra == 'dev'
Requires-Dist: flake8-builtins ; extra == 'dev'
Requires-Dist: flake8-bugbear ; extra == 'dev'
Requires-Dist: flake8-comprehensions ; extra == 'dev'
Requires-Dist: flake8-pytest-style ; extra == 'dev'
Requires-Dist: pep8-naming ; extra == 'dev'
Requires-Dist: dlint ; extra == 'dev'
Requires-Dist: rstcheck ; extra == 'dev'
Requires-Dist: rope ; extra == 'dev'
Requires-Dist: isort ; extra == 'dev'
Requires-Dist: pytest ; extra == 'dev'
Requires-Dist: pytest-cov ; extra == 'dev'
Requires-Dist: Sphinx ; extra == 'dev'
Requires-Dist: furo ; extra == 'dev'
Provides-Extra: docs
Requires-Dist: Sphinx ; extra == 'docs'
Requires-Dist: furo ; extra == 'docs'
Provides-Extra: test
Requires-Dist: pytest ; extra == 'test'
Requires-Dist: pytest-cov ; extra == 'test'

CORS support library for web servers
====================================

.. image:: https://github.com/zgoda/corslib/workflows/Tests/badge.svg?branch=master
    :target: https://github.com/zgoda/corslib/actions?query=workflow%3ATests
    :alt: Tests

.. image:: https://coveralls.io/repos/github/zgoda/corslib/badge.svg?branch=master
    :target: https://coveralls.io/github/zgoda/corslib?branch=master
    :alt: Test coverage report

.. image:: https://www.codefactor.io/repository/github/zgoda/corslib/badge/master
    :target: https://www.codefactor.io/repository/github/zgoda/corslib/overview/master
    :alt: Code quality report

.. image:: https://readthedocs.org/projects/corslib/badge/?version=latest
    :target: https://corslib.readthedocs.io/en/latest/?badge=latest
    :alt: Documentation status


Policy-based CORS support library for web applications.

This is framework- and protocol-agnostic library that provides CORS policy object that is able to generate both preflight and regular response headers for `Cross Origin Resource Sharing <https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS>`_.

It tries to be as secure as it's possible while being usable for both development and production. The goal is to provide header generation facility that has no inherent insecurities and does not pruce insecure result under any circumstances.


