209 похожих чатов

Всем привет, как победить ошибку cors с фронта хотя бы

на локалхосте? вот это вбил не помогает, все равно ошибка корс Access to fetch at 'http://localhost:3000/graphql' from origin 'http://localhost:5173' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: The 'Access-Control-Allow-Origin' header contains the invalid value 'true'. Have the server send the header with a valid value, or, if an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

1 ответов

18 просмотров

Нгинкс можно поставить чтобы не мучаться А так origin: '*' вроде ставил чтобы тестить Можно по чату пройтись по ключу CORS

Похожие вопросы

Обсуждают сегодня

Карта сайта