# jQuery ajaxSetup einhängen

**URL:** <https://forum.shopware.com/t/jquery-ajaxsetup-einhangen/38018>\
**Category:** Programmierung\
**Created:** [7. Juli 2016 um 11:47 UTC](https://forum.shopware.com/t/jquery-ajaxsetup-einhangen/38018 "2016-07-07T11:47:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shyim](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/shyim/32/7681_2.png) [@shyim](https://forum.shopware.com/u/shyim)\
**Post date:** [7. Juli 2016 um 11:47 UTC](https://forum.shopware.com/t/jquery-ajaxsetup-einhangen/38018/1 "2016-07-07T11:47:06Z")

</div>

Hallo,

ich versuche bei jedem Ajax Aufruf einen bestimmten Header mitzusenden um die Requests zu Profilen. Jedoch macht Shopware in 5.2 auch ein ajaxSetup und die überschneiden sich.

> <https://github.com/shopware/shopware/blob/5.2/themes/Frontend/Responsive/frontend/_public/src/js/jquery.csrf-protection.js#L126>

Ich hab bisher keine Methode gefunden um mich selbst da einzuklinken. Hat evtl. jemand eine Idee?

mfg,

Shyim

---

<div class="post-metadata">

**Author:** ![t2oh4e](https://avatars.discourse-cdn.com/v4/letter/t/a5b964/32.png) [@t2oh4e](https://forum.shopware.com/u/t2oh4e)\
**Post date:** [7. Juli 2016 um 12:31 UTC](https://forum.shopware.com/t/jquery-ajaxsetup-einhangen/38018/2 "2016-07-07T12:31:05Z")

</div>

Wenn das jemand weiß dann bestimmt [@Stephan Pohl]([http://forum.shopware.com/profile/2/Stephan](http://forum.shopware.com/profile/2/Stephan) Pohl “Stephan Pohl”)‍
