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.

Source Distributions

No source distribution files available for this release. See tutorial on generating distribution archives.

Built Distribution

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