forked from mirror/MrDoc
新增站点跨域支持
This commit is contained in:
parent
f346149606
commit
f29bf00085
@ -59,6 +59,7 @@ INSTALLED_APPS = [
|
||||
'app_api', # API APP
|
||||
'django.contrib.sitemaps', # 站点地图
|
||||
'rest_framework',
|
||||
'corsheaders',
|
||||
]
|
||||
|
||||
MIDDLEWARE = [
|
||||
@ -66,6 +67,7 @@ MIDDLEWARE = [
|
||||
'django.contrib.sessions.middleware.SessionMiddleware',
|
||||
'django.middleware.locale.LocaleMiddleware',
|
||||
'django.middleware.common.CommonMiddleware',
|
||||
'corsheaders.middleware.CorsMiddleware',
|
||||
'django.middleware.csrf.CsrfViewMiddleware',
|
||||
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
||||
'django.contrib.messages.middleware.MessageMiddleware',
|
||||
|
@ -14,4 +14,5 @@ mammoth==1.4.13
|
||||
markdownify==0.6.0
|
||||
selenium==3.141.0
|
||||
webdriver_manager==3.3.0
|
||||
PyYAML==5.4.1
|
||||
PyYAML==5.4.1
|
||||
django-cors-headers>=3.10.0
|
Loading…
Reference in New Issue
Block a user