django-cors-headers not work

后端 未结 13 1410
情深已故
情深已故 2020-12-29 04:10

django-cors-headers not work

INSTALLED_APPS = (
    \'django.contrib.admin\',
    \'django.contrib.auth\',
    \'django.contrib.contenttypes\',
    \'django.         


        
13条回答
  •  温柔的废话
    2020-12-29 04:27

    I guess corsheaders and clickjacking middlewares are not compatible. At least I got rid off X-Frame-Options header when I commented out django.middleware.clickjacking.XFrameOptionsMiddleware.

    I've just CORS_ORIGIN_ALLOW_ALL = True setting.

提交回复
热议问题