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

(This post was last modified: 04-23-2024, 04:37 AM by kenjis.)

(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)
Reply
#12
Thumbs Up 

(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".
Reply




Theme © iAndrew 2016 - Forum software by © MyBB