# Ständig Mails mit: The provided X-CSRF-Token for path "/checkout/addArticle" is invalid.

**URL:** <https://forum.shopware.com/t/standig-mails-mit-the-provided-x-csrf-token-for-path-checkout-addarticle-is-invalid/60331>\
**Category:** Administration\
**Created:** [8. Juli 2019 um 08:16 UTC](https://forum.shopware.com/t/standig-mails-mit-the-provided-x-csrf-token-for-path-checkout-addarticle-is-invalid/60331 "2019-07-08T08:16:48Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![AndyB](https://avatars.discourse-cdn.com/v4/letter/a/96bed5/32.png) [@AndyB](https://forum.shopware.com/u/AndyB)\
**Post date:** [8. Juli 2019 um 08:16 UTC](https://forum.shopware.com/t/standig-mails-mit-the-provided-x-csrf-token-for-path-checkout-addarticle-is-invalid/60331/1 "2019-07-08T08:16:48Z")

</div>

Seit einer Weile bekomme ich ca. alle 2 Minuten Mails mit dem folgenden Inhalt:

```
CRITICAL

Message:

The provided X-CSRF-Token for path "/checkout/addArticle" is invalid. Please go back, reload the page and try again.

Time:

2019-07-08T09:37:14.679317+0200

Channel:

core

request:

{
    "uri": "/checkout/addArticle",
    "method": "POST",
    "query": {
        "module": "frontend",
        "controller": "checkout",
        "action": "addArticle"
    },
    "post": {
        "sActionIdentifier": "",
        "sAddAccessories": "",
        "sAdd": "138608",
        "sQuantity": "1",
        "In_den_Warenkorb": ""
    }
}

session:

No session data available

shopId:

3

```

&nbsp;

Habe schon ein wenig rumgeschaut was das ist und es sieht so aus als ob Bots ohne Token versuchen was in den Warenkorb zu legen!?

Nervt, da durch die Menge der Mails wirkliche Fehlermeldung leider untergehen.

Kennt das jemand und kann was dazu sagen bzw. kann ich das irgendwie abstellen?

&nbsp;

&nbsp;

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![Moritz\_Naczenski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/moritz_naczenski/32/7792_2.png) [@Moritz\_Naczenski](https://forum.shopware.com/u/Moritz_Naczenski)\
**Post date:** [8. Juli 2019 um 08:31 UTC](https://forum.shopware.com/t/standig-mails-mit-the-provided-x-csrf-token-for-path-checkout-addarticle-is-invalid/60331/2 "2019-07-08T08:31:16Z")

</div>

Ab Shopware 5.6 ist das nur noch ein Warning, dann bekommst du die Mails nicht mehr.

&nbsp;

---

<div class="post-metadata">

**Author:** ![AndyB](https://avatars.discourse-cdn.com/v4/letter/a/96bed5/32.png) [@AndyB](https://forum.shopware.com/u/AndyB)\
**Post date:** [8. Juli 2019 um 08:45 UTC](https://forum.shopware.com/t/standig-mails-mit-the-provided-x-csrf-token-for-path-checkout-addarticle-is-invalid/60331/3 "2019-07-08T08:45:16Z")

</div>

Danke Moritz, dann nehme ich es mal so hin und hake es unter normalem Verhalten von Shopware \<= 5.6 ab 🙂

Bis zum nächsten Update!

---

<div class="post-metadata">

**Author:** ![Jadrovino](https://avatars.discourse-cdn.com/v4/letter/j/58f4c7/32.png) [@Jadrovino](https://forum.shopware.com/u/Jadrovino)\
**Post date:** [30. Juli 2019 um 09:35 UTC](https://forum.shopware.com/t/standig-mails-mit-the-provided-x-csrf-token-for-path-checkout-addarticle-is-invalid/60331/4 "2019-07-30T09:35:36Z")

</div>

Hallo,

&nbsp;

Ich bekomme ebenfalls eine Fehlermeldung dieser Art:

```
 The provided X-CSRF-Token for path "/checkout/ajaxAddArticleCart" is invalid. Please go back, reload the page and try again

```

In meinem Fall lassen sich keine Produkte in den warenkorb legen. Die Kreis im Browser dreht sich nur, keine Anzeige des Warenkorbs. Das passiert auch im Backend bei Erstellung einer Order im BAckend.  
Hängt das mit der Fehlermeldung zusammen?

Hintergrund: Ich habe den Shop von Hosteurope zu Profihost gerade umgezogen.

Danke

Gerd, [Jadrovino.de](http://Jadrovino.de)

---

<div class="post-metadata">

**Author:** ![AndyB](https://avatars.discourse-cdn.com/v4/letter/a/96bed5/32.png) [@AndyB](https://forum.shopware.com/u/AndyB)\
**Post date:** [30. Juli 2019 um 09:51 UTC](https://forum.shopware.com/t/standig-mails-mit-the-provided-x-csrf-token-for-path-checkout-addarticle-is-invalid/60331/5 "2019-07-30T09:51:57Z")

</div>

Bei mir ging es ja nur um die Mails die von den Bots ohne gültigen Token erzeugt werden.

Bei dir geht ja der ganze Checkout im Shop nicht.  
Sehr naheliegend das es an deinen Serverwechsel liegt.

Schon mal alle Caches gelöscht?

&nbsp;

---

<div class="post-metadata">

**Author:** ![Jadrovino](https://avatars.discourse-cdn.com/v4/letter/j/58f4c7/32.png) [@Jadrovino](https://forum.shopware.com/u/Jadrovino)\
**Post date:** [30. Juli 2019 um 10:14 UTC](https://forum.shopware.com/t/standig-mails-mit-the-provided-x-csrf-token-for-path-checkout-addarticle-is-invalid/60331/6 "2019-07-30T10:14:14Z")

</div>

Ja hab ich, gleich als erstes, Der weitere Wortlaut der Fehlermeldung ist:

```
 { "uri": "/checkout/ajaxAddArticleCart", "method": "POST", "query": { "module": "frontend", "controller": "checkout", "action": "ajaxAddArticleCart" }, "post": { "sActionIdentifier": "", "sAddAccessories": "", "sAdd": "PLA010", "sQuantity": "2", "isXHR": "1" } }

```

&nbsp;

VG  
Gerd

---

<div class="post-metadata">

**Author:** ![AndreHerking](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/andreherking/32/7839_2.png) [@AndreHerking](https://forum.shopware.com/u/AndreHerking)\
**Post date:** [30. Juli 2019 um 10:30 UTC](https://forum.shopware.com/t/standig-mails-mit-the-provided-x-csrf-token-for-path-checkout-addarticle-is-invalid/60331/7 "2019-07-30T10:30:16Z")

</div>

Sind bei dir Cookies aktiviert? Hast du mal einen anderen Browser probiert? Du könntest mal probieren ob es im Inkongnito Modus geht, um sicherzustellen das du auch einen neuen Token in den Cookies hast.

LG Andre

---

<div class="post-metadata">

**Author:** ![Jadrovino](https://avatars.discourse-cdn.com/v4/letter/j/58f4c7/32.png) [@Jadrovino](https://forum.shopware.com/u/Jadrovino)\
**Post date:** [30. Juli 2019 um 10:33 UTC](https://forum.shopware.com/t/standig-mails-mit-the-provided-x-csrf-token-for-path-checkout-addarticle-is-invalid/60331/8 "2019-07-30T10:33:24Z")

</div>

Ich konnte es selbst lösen.

In den Shopeinstellungen hab ich [https://www.domainname.de](https://www.domainname.de) zusätzlich eingetragen.&nbsp;

Es war ne SSL-Sache.

&nbsp;

Gruss

Gerd
