CodeIgniter Forums
CSRF Cookie - Printable Version

+- CodeIgniter Forums (
+-- Forum: CodeIgniter 4 (
+--- Forum: CodeIgniter 4 Support (
+--- 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