Skip to main content

Flash cross-domain policies for Django sites

Project description

This application enables simple Flash cross-domain access policies for Django 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:

url(r'^crossdomain.xml$',
    'flashpolicies.views.simple',
    { 'domains': ['media.yoursite.com'] }),

Various other views are included, handling other common and not-so-common cases.

Also present is a class – flashpolicies.policies.Policy – which provides a simple Python API for creating and manipulating cross-domain policies, as well as serializing them to the correct XML. This class is designed to be useful regardless of whether Django is present or used, and depends only on modules available in the Python standard library.

Full documentation for all functionality is also included, as well as an ever-growing test suite.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-flashpolicies-1.2.tar.gz (10.0 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page