CodeIgniter Forums
v4.5.1 Bug Fix Released - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: General (https://forum.codeigniter.com/forumdisplay.php?fid=1)
+--- Forum: News & Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=2)
+--- Thread: v4.5.1 Bug Fix Released (/showthread.php?tid=90653)

Pages: 1 2


RE: v4.5.1 Bug Fix Released - kenjis - 04-23-2024

(04-23-2024, 03:02 AM)LP_bnss Wrote:
  • IF ENVIRONMENT is in Development on Localhost, why we need HTTPS?

If  HTTPS  is must for secure request in localhost (development stage), how can i use the serverSide enabled datatable?
Also how to create SSL Certificate for codeIgniter 4 (installed from composer) on localhost.

Help me to solve this

In this context, "Secure" means HTTPS.
I don't think you need HTTPS on localhost development environment.
But you configured to use Secure Cookie. So CI4 throws the security exception.

Your choices are:
1. do not use secure cookie in development environment (and use HTTP)
2. install SSL Certificate (and web server) in your localhost (and use HTTPS)


RE: v4.5.1 Bug Fix Released - LP_bnss - 04-23-2024

(04-23-2024, 04:35 AM)kenjis Wrote: In this context, "Secure" means HTTPS.
I don't think you need HTTPS on localhost development environment.
But you configured to use Secure Cookie. So CI4 throws the security exception.

Your choices are:
1. do not use secure cookie in development environment (and use HTTP)


Thank you brother for your support, it works after modified secure cookie value as false in .env file.

But this will also helps you to find some changes in the ResponseTrait.php file "Exception Error".