# CSRF token in storefront using Vue.js

**URL:** <https://forum.shopware.com/t/csrf-token-in-storefront-using-vue-js/87420>\
**Category:** Shopware 6 (English)\
**Created:** [5. Mai 2021 um 13:42 UTC](https://forum.shopware.com/t/csrf-token-in-storefront-using-vue-js/87420 "2021-05-05T13:42:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![marcelbeks](https://avatars.discourse-cdn.com/v4/letter/m/3bc359/32.png) [@marcelbeks](https://forum.shopware.com/u/marcelbeks)\
**Post date:** [5. Mai 2021 um 13:42 UTC](https://forum.shopware.com/t/csrf-token-in-storefront-using-vue-js/87420/1 "2021-05-05T13:42:16Z")

</div>

I am using a custom instance of Vue.js in the storefront. But I’m having some issues with adding items to the cart. Or any API calls for that instance. I need a CSRF token for API call, but I have no idea how to retrieve this token from inside my Vue.js storefront, because I’m not using twig. Is there a way to get this token inside a Vue storefront?
