How to implement a cookie-based authentification

will this (angular cookie) solve my x-csrf-token issue i stated here --> Need Help With X-CSRF-Token issue ! :(

Can you help me with this ? Help is appreciated !