Metadata-Version: 2.1
Name: django-flashpolicies
Version: 1.14
Summary: Flash cross-domain policies for Django sites
Home-page: https://github.com/ubernostrum/django-flashpolicies/
Author: James Bennett
Author-email: james@b-list.org
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Framework :: Django :: 3.2
Classifier: Framework :: Django :: 4.0
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Topic :: Utilities
Requires-Python: >=3.7
License-File: LICENSE

.. -*-restructuredtext-*-

.. image:: https://github.com/ubernostrum/django-flashpolicies/workflows/CI/badge.svg
   :alt: CI status image
   :target: https://github.com/ubernostrum/django-flashpolicies/actions?query=workflow%3ACI

This application provides management of Flash cross-domain access
policies for `Django <https://www.djangoproject.com>`_ sites. For
example, the following URL pattern is all you'd need to set up
cross-domain access for Flash files served from your media server:

.. code:: python

    from django.urls import path

    from flashpolicies.views import allow_domains

    urlpatterns = [
        # ...your other URL patterns here...
        path(
            'crossdomain.xml',
            allow_domains,
            {'domains': ['media.example.com']}
        ),
    ]


Various other views are included, handling other common and
not-so-common cases, as well as utilities for generating custom
cross-domain policies.

Full documentation for all functionality is also included and
`available online
<https://django-flashpolicies.readthedocs.io/>`_.
