I include this in my backend:
header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Headers: *");
header("Content-type: application/json; charset=UTF-8");
When I want to post some data inside react redux I get this error
response to preflight request doesn't pass access control check it does not have http ok status
but when I delete this line code works....
http_response_code(422);