How can I response a Jquery $.post call with Slimframework 3 with multiples status code? my code is: Javascript: $.post(‘/insert/table/’ + $pedido, table_data) .done(function(data, statusText, …
Tag: slim
CORS Errors only with 400 bad request react fetch request
I’m trying to make ‘POST’ request in react but i’m getting a few problems regarding CORS. I was just following what console says and fix them in server side [which is PHP] and client side everything works fine when the status is 200 but when status 400 it shows login:1 Failed to load http://192.168.0.102/API/: No ‘Access-Control-Allow-Origin’ header is present on