# "The provided X-CSRF-Token for path" für eine URL deaktivieren?

**URL:** <https://forum.shopware.com/t/the-provided-x-csrf-token-for-path-fur-eine-url-deaktivieren/58672>\
**Category:** Programmierung\
**Created:** [20. März 2019 um 10:24 UTC](https://forum.shopware.com/t/the-provided-x-csrf-token-for-path-fur-eine-url-deaktivieren/58672 "2019-03-20T10:24:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![R4M](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/r4m/32/9983_2.png) [@R4M](https://forum.shopware.com/u/R4M)\
**Post date:** [20. März 2019 um 10:24 UTC](https://forum.shopware.com/t/the-provided-x-csrf-token-for-path-fur-eine-url-deaktivieren/58672/1 "2019-03-20T10:24:08Z")

</div>

Gibt es eine Möglichkeit die X-CSRF-Token Prüfung für eine URL bzw. Controller über ein Plugin zu deaktivieren? Die generelle Methode über config.php ist mir durchaus bekannt, ich suche jedoch einen Weg der nur auf einen bestimmte URL zutreffen soll.

---

<div class="post-metadata">

**Author:** ![codiverse](https://avatars.discourse-cdn.com/v4/letter/c/b782af/32.png) [@codiverse](https://forum.shopware.com/u/codiverse)\
**Post date:** [20. März 2019 um 10:34 UTC](https://forum.shopware.com/t/the-provided-x-csrf-token-for-path-fur-eine-url-deaktivieren/58672/2 "2019-03-20T10:34:18Z")

</div>

Hi,

geht es um ein eigenes Plugin? Dann denke ich suchst du das hier:

> **[CSRF Protection](https://developers.shopware.com/developers-guide/csrf-protection/#whitelist-particular-actions)**
>
> CSRF Protection

> The `CSRFWhitelistAware` interface contains one method, which should return a list with names of whitelisted actions. This tells the validator not to check certain actions. This method applies to both frontend and backend actions.
> 
> For example, given an action called `downloadAsCsvAction()`, you have to add `downloadAsCsv` to list of whitelisted actions right inside of the new `getWhitelistedCSRFActions()` method.

---

<div class="post-metadata">

**Author:** ![R4M](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/r4m/32/9983_2.png) [@R4M](https://forum.shopware.com/u/R4M)\
**Post date:** [20. März 2019 um 10:58 UTC](https://forum.shopware.com/t/the-provided-x-csrf-token-for-path-fur-eine-url-deaktivieren/58672/3 "2019-03-20T10:58:54Z")

</div>

Ja geht um ein einfaches Plugin ohne Controller und das Teste ich aktuell, führt aber noch zu keinem Ergebnis.
