feat: base 使用缓存处理session及csrf适应
This commit is contained in:
parent
043193eda7
commit
9f052d1fdd
|
@ -223,6 +223,7 @@ REST_FRAMEWORK = {
|
||||||
}
|
}
|
||||||
# session配置
|
# session配置
|
||||||
SESSION_ENGINE = 'django.contrib.sessions.backends.cache'
|
SESSION_ENGINE = 'django.contrib.sessions.backends.cache'
|
||||||
|
CSRF_COOKIE_NAME = 'csrftoken'
|
||||||
|
|
||||||
# simplejwt配置
|
# simplejwt配置
|
||||||
SIMPLE_JWT = {
|
SIMPLE_JWT = {
|
||||||
|
|
Loading…
Reference in New Issue