{ "info": { "author": "Ruhshan Ahmed Abir", "author_email": "ruhshan.ahmed@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Framework :: Django :: 1.10", "Framework :: Django :: 1.11", "Intended Audience :: Developers", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "=====\nDJANGO-RESTRICTMETHODORIGIN\n=====\n\nDJANGO-RESTRICTMETHODORIGIN is a simple Django app to bind origins with http methods.\nSo that its possible to allow ony speicific origins to make speicific http requests like POST, GET, PUT etc. \n\n\nQuick start\n-----------\n\n1. Add \"restrictmethodorigin\" to your INSTALLED_APPS setting like this:\n\n INSTALLED_APPS = [\n ...\n 'restrictmethodorigin',\n ]\n\n2. Add \"OriginRestrictor\" to your MIDDLEWARE like this:\n MIDDLEWARE = [\n ...\n 'restrictmethodorigin.base.OriginRestrictor'\n ]\n\n3. In settings.py create a dictionary METHOD_ORIGIN like this:\n METHOD_ORIGIN = { 'POST': ['127.0.0.1'],\n 'PUT': ['127.0.0.1','127.0.0.2'] }\n\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Ruhshan/django-restrictmethodorigin", "keywords": "django restrictmethod origin", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "django-restrictmethodorigin", "package_url": "https://pypi.org/project/django-restrictmethodorigin/", "platform": "", "project_url": "https://pypi.org/project/django-restrictmethodorigin/", "project_urls": { "Homepage": "https://github.com/Ruhshan/django-restrictmethodorigin" }, "release_url": "https://pypi.org/project/django-restrictmethodorigin/0.1.1/", "requires_dist": null, "requires_python": ">=3", "summary": "A simple Django app to restrict http methods to specific origin", "version": "0.1.1" }, "last_serial": 3658521, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "ace80ee7febe5ec112074b44535e5649", "sha256": "fbd5e3642b61039ac1605e4c8c8fd2fbead306b2cc67838fce1b92832d1aa359" }, "downloads": -1, "filename": "django_restrictmethodorigin-0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ace80ee7febe5ec112074b44535e5649", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3", "size": 3682, "upload_time": "2018-03-11T07:46:18", "url": "https://files.pythonhosted.org/packages/e3/b6/fc6396a22927d35ab785690bc3c62fb667c29ffc31c9a5fbd7528c1349f4/django_restrictmethodorigin-0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a02c64a9b69cd82fe25e0ed00b6107f8", "sha256": "81bce51019e0b1994cc66e2b9a8817d7b555967126df1acd288401e143af6edb" }, "downloads": -1, "filename": "django-restrictmethodorigin-0.1.tar.gz", "has_sig": false, "md5_digest": "a02c64a9b69cd82fe25e0ed00b6107f8", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 2755, "upload_time": "2018-03-11T07:46:19", "url": "https://files.pythonhosted.org/packages/3c/fa/20c79a23e9f648123b7d15799689c0af07e72105514be02d59631ac714e6/django-restrictmethodorigin-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "c561c1e8d9d1b921e8f9570112c61805", "sha256": "76a34c7036d3d7427b3e102222816e4301a4f4ded548adc97faf0bc9b1a863dd" }, "downloads": -1, "filename": "django_restrictmethodorigin-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c561c1e8d9d1b921e8f9570112c61805", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3", "size": 4122, "upload_time": "2018-03-11T07:52:16", "url": "https://files.pythonhosted.org/packages/17/ac/728b96057cabf83f43a28d32ef4b15aec66bb668d8f360cc7fded41cfafb/django_restrictmethodorigin-0.1.1-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c561c1e8d9d1b921e8f9570112c61805", "sha256": "76a34c7036d3d7427b3e102222816e4301a4f4ded548adc97faf0bc9b1a863dd" }, "downloads": -1, "filename": "django_restrictmethodorigin-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c561c1e8d9d1b921e8f9570112c61805", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3", "size": 4122, "upload_time": "2018-03-11T07:52:16", "url": "https://files.pythonhosted.org/packages/17/ac/728b96057cabf83f43a28d32ef4b15aec66bb668d8f360cc7fded41cfafb/django_restrictmethodorigin-0.1.1-py2.py3-none-any.whl" } ] }