검색결과 리스트
2024/04/26 에 해당되는 글 3건
- 2024.04.26 django CORS 해결 방법
- 2024.04.26 django restframework jwt 토큰 얻기
- 2024.04.26 Github 아이디 비번 입력 없이 push
2024. 4. 26. 17:52
1. pip install django-cors-headers
2. settings.py
INSTALLED_APPS = [
'corsheaders'
]
3. MIDDLEWARE = [
'corsheaders.middleware.CorsMiddleware',
]
4. CORS_ALLOWED_ORIGINS = [
'http://localhost:5173' # 보내는 클라이언트 주소
]
5. CORS_ALLOW_CREDENTIALS = True
2024. 4. 26. 14:18
pip install djangorestframework
pip install djangorestframework-simplejwt
2024. 4. 26. 14:16