取消跨域js调用的验证

This commit is contained in:
kingmo888 2023-12-18 09:33:39 +08:00
parent 82880b11b5
commit 86f99e3917
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@ -15,7 +15,7 @@ from pathlib import Path
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
CSRF_TRUSTED_ORIGINS = [os.environ.get("CSRF_TRUSTED_ORIGINS", "http://www.baidu.com")]
SECURE_CROSS_ORIGIN_OPENER_POLICY = 'None'
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/