CodeIgniter Forums

Full Version: CSRF Cookie
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello there,

I am new with CI4 and I am currently having problems accessing the CSRF cookie by javascript since the "httpOnly: true" header is currently being added which makes it impossible to obtain the value by methods such as Cookies.get('cookie-name') or others.
So, I wonder if there is any option to disable this header in this cookie?

Thanks in advance for the help Smile