File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 35
35
INSTALLED_APPS = [
36
36
'django.contrib.auth' ,
37
37
'django.contrib.contenttypes' ,
38
+ 'corsheaders' ,
38
39
'django.contrib.sessions' ,
39
40
'django.contrib.messages' ,
40
41
'django.contrib.staticfiles' ,
49
50
'django.contrib.auth.middleware.AuthenticationMiddleware' ,
50
51
'django.contrib.messages.middleware.MessageMiddleware' ,
51
52
'django.middleware.clickjacking.XFrameOptionsMiddleware' ,
53
+ 'corsheaders.middleware.CorsMiddleware' ,
54
+ 'django.middleware.common.CommonMiddleware' ,
52
55
]
53
56
57
+ #CORS_ALLOW_ALL_ORIGINS = True
58
+ #CORS_ALLOW_CREDENTIALS = True
59
+ CORS_ALLOWED_ORIGINS = ['https://main--pwm-front-test.netlify.app' ]
60
+ #CORS_ALLOWED_ORIGIN_REGEXES = []
61
+
54
62
ROOT_URLCONF = 'pwm_item_api.urls'
55
63
56
64
TEMPLATES = [
Original file line number Diff line number Diff line change 1
1
django == 4.2.13
2
+ django-cors-headers == 4.4.0
You can’t perform that action at this time.
0 commit comments