Skip to main content

A simple Django app to restrict http methods to specific origin

Project description


DJANGO-RESTRICTMETHODORIGIN is a simple Django app to bind origins with http methods.
So that its possible to allow ony speicific origins to make speicific http requests like POST, GET, PUT etc.

Quick start

1. Add "restrictmethodorigin" to your INSTALLED_APPS setting like this:


2. Add "OriginRestrictor" to your MIDDLEWARE like this:

3. In create a dictionary METHOD_ORIGIN like this:
'PUT': ['',''] }

Project details

Download files

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

Files for django-restrictmethodorigin, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size django_restrictmethodorigin-0.1.1-py2.py3-none-any.whl (4.1 kB) File type Wheel Python version py2.py3 Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page