Welcome Guest, Not a member yet? Register   Sign In
v4.5.1 Bug Fix Released
#8

(04-21-2024, 04:59 PM)kenjis Wrote: @LP_bnss The exception message is not good. I sent a PR to fix it.
https://github.com/codeigniter4/CodeIgniter4/pull/8818
Do you get what's wrong?

Why my request is not secure while request from ajax call in the datatable

After i have modified the ResponseTrait.php file

PHP Code:
if ($cookie->isSecure() && ! $request->isSecure() && ! $request->isAJAX() ) {
          throw SecurityException::forDisallowedAction();
    

CI-datatable library properly working, otherwise its getting error status code 500 "Internal Server Error"
  • The ajax request method from datatable is "GET", so why the request is not secure ?
  • If i use "POST" method then i add CSRF in the  request header "X-Csrf-Header"

Both methods are getting error why?

I don't know what i do?

See this thread https://forum.codeigniter.com/showthread...#pid418015 for reference
Reply


Messages In This Thread
v4.5.1 Bug Fix Released - by kenjis - 04-13-2024, 09:33 PM
RE: v4.5.1 Bug Fix Released - by InsiteFX - 04-13-2024, 11:17 PM
RE: v4.5.1 Bug Fix Released - by lokman - 04-16-2024, 02:12 PM
RE: v4.5.1 Bug Fix Released - by LP_bnss - 04-20-2024, 06:56 AM
RE: v4.5.1 Bug Fix Released - by kenjis - 04-20-2024, 05:36 PM
RE: v4.5.1 Bug Fix Released - by LP_bnss - 04-21-2024, 06:39 AM
RE: v4.5.1 Bug Fix Released - by kenjis - 04-21-2024, 04:59 PM
RE: v4.5.1 Bug Fix Released - by LP_bnss - 04-23-2024, 12:42 AM
RE: v4.5.1 Bug Fix Released - by kenjis - 04-23-2024, 01:48 AM
RE: v4.5.1 Bug Fix Released - by LP_bnss - 04-23-2024, 03:02 AM
RE: v4.5.1 Bug Fix Released - by kenjis - 04-23-2024, 04:35 AM
RE: v4.5.1 Bug Fix Released - by LP_bnss - 04-23-2024, 04:52 AM



Theme © iAndrew 2016 - Forum software by © MyBB