mirror of
https://github.com/lemeow125/Ivy-Backend.git
synced 2024-11-16 22:29:25 +08:00
Added corsheader
This commit is contained in:
parent
dab99b17cf
commit
62237c9a3c
1 changed files with 6 additions and 0 deletions
|
@ -40,11 +40,13 @@ INSTALLED_APPS = [
|
|||
'rest_framework',
|
||||
'rest_framework.authtoken',
|
||||
'djoser',
|
||||
'corsheaders',
|
||||
]
|
||||
|
||||
MIDDLEWARE = [
|
||||
'django.middleware.security.SecurityMiddleware',
|
||||
'django.contrib.sessions.middleware.SessionMiddleware',
|
||||
"corsheaders.middleware.CorsMiddleware",
|
||||
'django.middleware.common.CommonMiddleware',
|
||||
'django.middleware.csrf.CsrfViewMiddleware',
|
||||
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
||||
|
@ -141,3 +143,7 @@ EMAIL_HOST = 'sandbox.smtp.mailtrap.io'
|
|||
EMAIL_HOST_USER = '54ff6949e39105'
|
||||
EMAIL_HOST_PASSWORD = 'c59d3eaa05f98d'
|
||||
EMAIL_PORT = '2525'
|
||||
|
||||
CORS_ALLOWED_ORIGINS = [
|
||||
"http://localhost:3000",
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue