File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020# SECURITY WARNING: don't run with debug turned on in production!
2121DEBUG = env .bool ("DEBUG" , default = False )
2222
23- ALLOWED_HOSTS = ["diningfee.iiti.ac.in" , "127.0.0.1" ]
23+ ALLOWED_HOSTS = ["diningfee.iiti.ac.in" , "127.0.0.1" , "localhost" ]
2424CSRF_TRUSTED_ORIGINS = ["http://diningfee.iiti.ac.in" , "https://diningfee.iiti.ac.in" ]
25+ CORS_ORIGIN_ALLOW_ALL = True # Will change this to false after some time
2526# Application definition
2627
2728INSTALLED_APPS = [
3536 "django.contrib.sites" ,
3637 "django.contrib.admindocs" ,
3738 # Third-party apps
39+ "corsheaders" ,
3840 "import_export" ,
3941 "django_admin_logs" ,
4042 "allauth" ,
5355]
5456
5557MIDDLEWARE = [
58+ 'corsheaders.middleware.CorsMiddleware' ,
5659 "django.middleware.security.SecurityMiddleware" ,
5760 "django.contrib.sessions.middleware.SessionMiddleware" ,
5861 "django.middleware.common.CommonMiddleware" ,
You can’t perform that action at this time.
0 commit comments