C
C
cicwak2021-01-12 18:19:18
Django
cicwak, 2021-01-12 18:19:18

No 'Access-Control-Allowed-Origin' headers even though django-cors-headers is, how can I fix this?

Good evening to everyone who watches this, the problem is this, there used to be KORS, now (after adding new functions to views, but not touching settings at all), he writes that it is not there (in the application), tried to add it manually failed.
5ffdbce0d9fa0362329985.png
The question is, how can I restore KORS in the application?

django==2.2
django-cors-headers==2.2
python==3.5.3

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dr. Bacon, 2021-01-12
@bacon

What does the docs say about hosting in MIDDLEWARE?

_
_, 2021-01-13
@mrxor

put corsheaders.middleware.CorsMiddleware before django.middleware.common.CommonMiddleware

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question