mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Removed corsheaders
This commit is contained in:
@ -1,16 +1,3 @@
|
||||
"""
|
||||
Django settings for netbox project.
|
||||
|
||||
Generated by 'django-admin startproject' using Django 1.8.2.
|
||||
|
||||
For more information on this file, see
|
||||
https://docs.djangoproject.com/en/1.8/topics/settings/
|
||||
|
||||
For the full list of settings and their values, see
|
||||
https://docs.djangoproject.com/en/1.8/ref/settings/
|
||||
"""
|
||||
|
||||
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
|
||||
import os
|
||||
import socket
|
||||
|
||||
@ -24,7 +11,6 @@ INSTALLED_APPS = (
|
||||
'django.contrib.sessions',
|
||||
'django.contrib.messages',
|
||||
'django.contrib.staticfiles',
|
||||
'corsheaders',
|
||||
'debug_toolbar',
|
||||
'django_extensions',
|
||||
'django_tables2',
|
||||
@ -41,7 +27,6 @@ INSTALLED_APPS = (
|
||||
|
||||
MIDDLEWARE_CLASSES = (
|
||||
'django.contrib.sessions.middleware.SessionMiddleware',
|
||||
'corsheaders.middleware.CorsMiddleware',
|
||||
'django.middleware.common.CommonMiddleware',
|
||||
'django.middleware.csrf.CsrfViewMiddleware',
|
||||
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
||||
@ -130,11 +115,3 @@ try:
|
||||
from configuration import *
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
# django-cors-headers (API Cross-Origin Resource Sharing)
|
||||
if DEBUG:
|
||||
CORS_ORIGIN_ALLOW_ALL = True
|
||||
CORS_ALLOW_METHODS = (
|
||||
'GET',
|
||||
'OPTIONS',
|
||||
)
|
||||
|
Reference in New Issue
Block a user