Adds an /xdomain_proxy.html endpoint that serves the proxy file from the xdomain library. This allows IE9 users to iframe in the proxy page to simulate a cross-domain request with cookies.
20 lines
596 B
Python
20 lines
596 B
Python
"""Models for cross-domain configuration. """
|
|
from django.db import models
|
|
from django.utils.translation import ugettext_lazy as _
|
|
from config_models.models import ConfigurationModel
|
|
|
|
|
|
class XDomainProxyConfiguration(ConfigurationModel):
|
|
"""Cross-domain proxy configuration.
|
|
|
|
See `cors_csrf.views.xdomain_proxy` for an explanation of how this works.
|
|
|
|
"""
|
|
|
|
whitelist = models.fields.TextField(
|
|
help_text=_(
|
|
u"List of domains that are allowed to make cross-domain "
|
|
u"requests to this site. Please list each domain on its own line."
|
|
)
|
|
)
|