DJANGO-RESTRICTMETHODORIGIN
=====
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:
INSTALLED_APPS = [
...
'restrictmethodorigin',
]
2. Add "OriginRestrictor" to your MIDDLEWARE like this:
MIDDLEWARE = [
...
'restrictmethodorigin.base.OriginRestrictor'
]
3. In settings.py create a dictionary METHOD_ORIGIN like this:
METHOD_ORIGIN = { 'POST': ['127.0.0.1'],
'PUT': ['127.0.0.1','127.0.0.2'] }
Metadata
Release files for django-restrictmethodorigin 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_restrictmethodorigin-0.1.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Release files / django_restrictmethodorigin-0.1.1-py2.py3-none-any.whl
| Download URL | django_restrictmethodorigin-0.1.1-py2.py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
76a34c7036d3d7427b3e102222816e4301a4f4ded548adc97faf0bc9b1a863dd
|
|
BLAKE2b-256 checksum How to use checksums |
17ac728b96057cabf83f43a28d32ef4b15aec66bb668d8f360cc7fded41cfafb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-restrictmethodorigin 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.