lundi 23 novembre 2015

Set httpOnly flag for CSRF tokenin Laravel

I'm building an application in Laravel 5.1 for a client. After I finished the application I got back an pentest report which tells me to add a HttpOnly flag. I added 'secure' => true and 'http_only' => true to app/config/session.php. The httpOnly flag is set for all sessions, except the XSRF-TOKEN session. How am I able to set this flag as well?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire