Django cross-domain problem

django Cross-domain chrome lost cookie

I found this problem in vue before, but now I still have this problem with the simplest page plus ajax

related codes

django.settings

   

as above, firefox is normal and chrome is abnormal. Both of them have successfully obtained json data

Mar.31,2022

set the whitelist and try

Menu