= (
'http://google.com',
)
Пытаюсь отправить
response = await fetch("http://127.0.0.1:8000", {
"headers": {
},
"method": "GET",
})
console.log(response.text())
Получаю
Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
Перепробовал уже много комбинаций Access-Control заголовков, но что-то ничего не выходит
https://stackoverflow.com/questions/35760943/how-can-i-enable-cors-on-django-rest-framework
Я уже сделал это, написал же
Обсуждают сегодня