django-cors-headers not work

后端 未结 13 1437
情深已故
情深已故 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:21

    Are you trying to use the url inside an iframe?

    If that is the case, then the header X-Frame-Options: SAMEORIGIN might be causing a problem.

    To fix it remove the middleware, django.middleware.clickjacking.XFrameOptionsMiddleware.

提交回复
热议问题