Welcome Guest, Not a member yet? Register   Sign In
Find Bug in CI4
#4

(10-09-2020, 10:16 PM)InsiteFX Wrote: Did you use your web browsers developer tools F-12 console to see what is happing?

Did you send the Ajax X-Requested-With header?
I  write sample restful api with angular9 and use chrome and  i  got  error  which i didnot post variables 

And i test with postman with header ajax   and alao got error too 
The data sent but can not  be validate 
After  test every thing i find out data dose not pass to validation class. Add if condation  in validawith() thrn  i  fix problem  

This code ads to validation with request function 
If ($resquest->isAjax()) {

$this->data=$request->getJson(true)
}
Enlightenment  Is  Freedom
Reply


Messages In This Thread
Find Bug in CI4 - by paliz - 10-08-2020, 10:35 PM
RE: Find Bug in CI4 - by paliz - 10-09-2020, 02:17 AM
RE: Find Bug in CI4 - by InsiteFX - 10-09-2020, 10:16 PM
RE: Find Bug in CI4 - by paliz - 10-09-2020, 10:50 PM
RE: Find Bug in CI4 - by InsiteFX - 10-10-2020, 03:14 AM
RE: Find Bug in CI4 - by paliz - 10-10-2020, 07:54 AM
RE: Find Bug in CI4 - by paulbalandan - 10-10-2020, 12:20 PM



Theme © iAndrew 2016 - Forum software by © MyBB