프로그래밍/Python

django Forbidden (Origin checking failed

이재만박사 2024. 3. 11. 15:27

http://localhost:5173 does not match any trusted origins.): /auth/login/

 

이런 메세지가 떴을 때는

 

settings.py 에 다음을 넣어준다

 

CSRF_TRUSTED_ORIGINS = ['http://localhost:5173']