Код: Выделить всё
Access to XMLHttpRequest at 'http://localhost:5000/jobs/post-job'
from origin 'http://localhost:3000' has been blocked by CORS policy:
Response to preflight request doesn't pass access control check:
It does not have HTTP ok status.
Код: Выделить всё
# Enable CORS for specific blueprints
CORS(app)
CORS(job_routes, resources={r"/*": {"origins": "http://localhost:3000"}})
CORS(application_routes, resources={r"/*": {"origins": "http://localhost:3000"}})
CORS(resume_routes, resources={r"/*": {"origins": "http://localhost:3000"}})
CORS(auth_routes, resources={r"/*": {"origins": "http://localhost:3000"}})
CORS(analysis_routes, resources={r"/*": {"origins": "http://localhost:3000"}})
я ожидаю, что мой интерфейс соединится с моим сервером, тогда у меня происходит эта ошибка
я проверил свой сервер с помощью почтальона работает правильно.
Подробнее здесь: https://stackoverflow.com/questions/793 ... t-frontend