This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django import http | |
from django.conf import settings | |
""" | |
Put this file in a directory called, eg, 'middleware,' inside your django | |
project. Make sure to create an __init__.py file in the directory so it can | |
be included as a module. | |
Set the values for | |
XS_SHARING_ALLOWED_ORIGINS | |
XS_SHARING_ALLOWED_METHODS |