feat: base 使用缓存处理session及csrf适应
This commit is contained in:
parent
085cf20b1a
commit
1d34df1985
|
@ -199,6 +199,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