Welcome Guest, Not a member yet? Register   Sign In
CSRF via http header?

I looked through the docs and it didn't seem like it was supported, but as time has moved on many of us use front end frameworks like Vue or Angular. Since the front end javascript frameworks are handling our forms, it becomes a little tedious to attach the csrf token to every form we're going to upload.

Will CI4 also accept a csrf token being passed in via the http header on post? At least in the library that I use (Axios), it would be easy to setup every form post to include the csrf token from the beginning via the header. As far as I know, you can't add them as post data by default.
Codeigniter is simply one of the tools you need to learn to be a successful developer. Always add more tools to your coding arsenal!

Messages In This Thread
CSRF via http header? - by albertleao - 09-30-2018, 10:56 PM
RE: CSRF via http header? - by scalla - 09-30-2018, 11:25 PM
RE: CSRF via http header? - by unodepiera - 09-30-2018, 11:44 PM
RE: CSRF via http header? - by puschie - 10-01-2018, 02:55 AM
RE: CSRF via http header? - by unodepiera - 10-01-2018, 03:01 AM

Theme © iAndrew 2016 - Forum software by © MyBB