CodeIgniter Forums
CSRF Cookie - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forum-28.html)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forum-30.html)
+--- Thread: CSRF Cookie (/thread-74623.html)



CSRF Cookie - DZy - 10-16-2019

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