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 details)

Uploaded Source

File details

Details for the file django-flashpolicies-1.2.tar.gz.

File metadata

File hashes

Hashes for django-flashpolicies-1.2.tar.gz
Algorithm Hash digest
SHA256 631f4d2ed61929643daf330c2bfd83e5a32e9ee69800a40358afe8953e7dabfc
MD5 fd56ef8bf616764ad3cda3f55708d08b
BLAKE2b-256 35f2ac564b4ddc2be415cbf6096649702032e91cb91d3a2f039c73795500ecd7

See more details on using hashes here.

Supported by

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