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?
Verwandte Themen
Thema | Antworten | Aufrufe | Aktivität | |
---|---|---|---|---|
Add cart items via API to storefront cart | 4 | 2289 | 12. Dezember 2024 | |
Warenkorb API scheint nicht zu funktionieren | 0 | 721 | 28. Juni 2021 | |
CSRF Token Fehler verhindert Abschluss der Bestellung in SW 5.7.11 | 7 | 2233 | 19. Oktober 2022 | |
vue.js im Storefront einbinden | 5 | 1554 | 31. Januar 2020 | |
Hidden csrf-Token verschwindet aus dem DOM bei Wechsel zu "Zahlung und Versand" | 2 | 423 | 6. April 2018 |