diff --git a/server/server/settings.py b/server/server/settings.py index cacf70b..4ad1000 100644 --- a/server/server/settings.py +++ b/server/server/settings.py @@ -114,6 +114,8 @@ USE_L10N = True USE_TZ = True +# 跨域配置 +CORS_ORIGIN_ALLOW_ALL = True # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/3.0/howto/static-files/