Metadata-Version: 1.1
Name: django-simple-csp
Version: 0.1.dev1
Summary: Django Content Security Policy support.
Home-page: https://github.com/fsinfuhh/django-simple-csp
Author: Nils Rokita
Author-email: 0rokita@informatik.uni-hamburg.de
License: License :: OSI Approved :: MIT License
Description: django-simple-csp
        =================
        
        A simple Middleware for adding CSP headers and nonces in Django
        
        Usage
        =====
        
        Requires Django >=1.10
        
        Add it to MIDDLEWARE not MIDDLEWARE_CLASSES
        TODO: discribe in more detail
        
        
        CSS
        ---
        
        TODO: remove hash from the name of tag?
        
        Example use of hashed inline style::
        
            {% load csp %}
            {% csp_css_hash %}
                td.style-class {
                    background-color: red;
                }
            {% end_csp_css_hash %}
        
        usage inside of style="..." attributes is not supported by chromium for now.
        
        Javascript
        ----------
        
        Nonces
        ~~~~~~
        
        TODO: Change to hashes?
        
        Example::
        
            {% load csp %}
            <script nonce={% csp_js_nonce %}>
                alert("bla")
            </script>
        
        
        Config Values
        -------------
        
        CSP_REPORT_URL = ""
        The URl CSP errors should be reportet to, set to "" if not used, or do not define it.
        
        CSP_REPORT_ONLY = True
        Set the header to just report CSP errors do not enforce the CSP. Defaults to True.
        
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Web Environment
Classifier: Programming Language :: Python
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Framework :: Django
