跨域配置

This commit is contained in:
caoqianming 2020-06-03 22:23:24 +08:00
parent 3396f9489a
commit 84499c0a8a
1 changed files with 2 additions and 0 deletions

View File

@ -114,6 +114,8 @@ USE_L10N = True
USE_TZ = True USE_TZ = True
# 跨域配置
CORS_ORIGIN_ALLOW_ALL = True
# Static files (CSS, JavaScript, Images) # Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/3.0/howto/static-files/ # https://docs.djangoproject.com/en/3.0/howto/static-files/