# CSRF Fehler

**URL:** <https://forum.shopware.com/t/csrf-fehler/40899>\
**Category:** Administration\
**Created:** [27. Oktober 2016 um 20:06 UTC](https://forum.shopware.com/t/csrf-fehler/40899 "2016-10-27T20:06:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![brettvormkopp](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/brettvormkopp/32/7788_2.png) [@brettvormkopp](https://forum.shopware.com/u/brettvormkopp)\
**Post date:** [27. Oktober 2016 um 20:06 UTC](https://forum.shopware.com/t/csrf-fehler/40899/1 "2016-10-27T20:06:49Z")

</div>

Mahlzeit, habe blauäugig ein System geupted von 5.1.6 auf 5.2.9 mit **PHP5.6.27** &nbsp;. Wenn ich das magnalister plugin öffne kommt nun folgende Fehlermeldung: Frage: wie bekomme ich die URL zu Magnalister in die Whitelist hinein oder wie schalte ich CSRF ab? Danke und Gruss?&nbsp;

```
Ups! Ein Fehler ist aufgetreten!

Die nachfolgenden Hinweise sollten Ihnen weiterhelfen.

The provided CSRF-Token is invalid. If you're sure that the request should be valid, the called controller action needs to be whitelisted using the CSRFWhitelistAware interface. in engine/Shopware/Components/CSRFTokenValidator.php on line 118

Stack trace:

#0 [internal function]: Shopware\Components\CSRFTokenValidator->checkBackendTokenValidation(Object(Enlight_Controller_ActionEventArgs))
#1 engine/Library/Enlight/Event/Handler/Default.php(91): call_user_func(Array, Object(Enlight_Controller_ActionEventArgs))
#2 engine/Library/Enlight/Event/EventManager.php(214): Enlight_Event_Handler_Default->execute(Object(Enlight_Controller_ActionEventArgs))
#3 engine/Library/Enlight/Controller/Action.php(143): Enlight_Event_EventManager->notify('Enlight_Control...', Object(Enlight_Controller_ActionEventArgs))
#4 engine/Library/Enlight/Controller/Dispatcher/Default.php(523): Enlight_Controller_Action->dispatch('appAction')
#5 engine/Library/Enlight/Controller/Front.php(223): Enlight_Controller_Dispatcher_Default->dispatch(Object(Enlight_Controller_Request_RequestHttp), Object(Enlight_Controller_Response_ResponseHttp))
#6 engine/Shopware/Kernel.php(177): Enlight_Controller_Front->dispatch()
#7 vendor/symfony/http-kernel/HttpCache/HttpCache.php(487): Shopware\Kernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#8 engine/Shopware/Components/HttpCache/AppCache.php(255): Symfony\Component\HttpKernel\HttpCache\HttpCache->forward(Object(Symfony\Component\HttpFoundation\Request), true, NULL)
#9 vendor/symfony/http-kernel/HttpCache/HttpCache.php(258): Shopware\Components\HttpCache\AppCache->forward(Object(Symfony\Component\HttpFoundation\Request), true)
#10 engine/Shopware/Components/HttpCache/AppCache.php(103): Symfony\Component\HttpKernel\HttpCache\HttpCache->pass(Object(Symfony\Component\HttpFoundation\Request), true)
#11 shopware.php(113): Shopware\Components\HttpCache\AppCache->handle(Object(Symfony\Component\HttpFoundation\Request))
#12 {main}

```

**\>\>[EDIT es ist PHP 5.6.27]\<\<**

---

<div class="post-metadata">

**Author:** ![waldicom](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/waldicom/32/12881_2.png) [@waldicom](https://forum.shopware.com/u/waldicom)\
**Post date:** [27. Oktober 2016 um 20:30 UTC](https://forum.shopware.com/t/csrf-fehler/40899/2 "2016-10-27T20:30:41Z")

</div>

Dafür müsste das Plugin die Version 5.2.x unterstützen. Dürfte mit der PHP Version nichts zu tun haben.

---

<div class="post-metadata">

**Author:** ![brettvormkopp](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/brettvormkopp/32/7788_2.png) [@brettvormkopp](https://forum.shopware.com/u/brettvormkopp)\
**Post date:** [27. Oktober 2016 um 20:50 UTC](https://forum.shopware.com/t/csrf-fehler/40899/3 "2016-10-27T20:50:37Z")

</div>

Das plugin hatte damals schon 5.1.6 nicht unterstützt, kunde brauchte es aber. Welche Stellschraube müsste ich im Plugin anfassen?

---

<div class="post-metadata">

**Author:** ![sschreier](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/sschreier/32/23296_2.png) [@sschreier](https://forum.shopware.com/u/sschreier)\
**Post date:** [27. Oktober 2016 um 20:59 UTC](https://forum.shopware.com/t/csrf-fehler/40899/4 "2016-10-27T20:59:13Z")

</div>

> [@brettvormkopp schrieb:](https://forum.shopware.com/profile/6611/brettvormkopp "brettvormkopp")
> 
> Das plugin hatte damals schon 5.1.6 nicht unterstützt, kunde brauchte es aber. Welche Stellschraube müsste ich im Plugin anfassen?

Hallo,

vielleicht hilft dir diese Shopware Dokumentation zu dem Thema weiter (da steht ja auch der Grund deiner Fehlermeldung drin): [CSRF Protection](https://developers.shopware.com/developers-guide/csrf-protection/) .

Beste Grüße

Sebastian

---

<div class="post-metadata">

**Author:** ![brettvormkopp](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/brettvormkopp/32/7788_2.png) [@brettvormkopp](https://forum.shopware.com/u/brettvormkopp)\
**Post date:** [27. Oktober 2016 um 21:52 UTC](https://forum.shopware.com/t/csrf-fehler/40899/5 "2016-10-27T21:52:44Z")

</div>

Hi @sschreier‍ , Danke für den link, wie trage ich denn in dem letzten Punkt die zuzulassende URL ein? Danke

---

<div class="post-metadata">

**Author:** ![brettvormkopp](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/brettvormkopp/32/7788_2.png) [@brettvormkopp](https://forum.shopware.com/u/brettvormkopp)\
**Post date:** [27. Oktober 2016 um 22:06 UTC](https://forum.shopware.com/t/csrf-fehler/40899/6 "2016-10-27T22:06:41Z")

</div>

OK, ich habe jetzt in der COnfig die CSRF für das Backend abgeschalten. Zusätzlich musste noch der Cache einmal und eine Datei im Plugin “ClientVersion” gelöscht werden.
