My Application structure as follows
1)API server running in api.mydomain.com
2)Frontend VUejs application running in www.mydomain.com
So i implemented authentication via httponly cookie.
But little confused with CSRF token implementation
Mysolution
1).CSRF
token from the url like /getCSRF
.
2) Store it in localstorage.
3) Send with every request.
But i don't think its the good way does anyone have suggestion?