bernhard 3,314 Posted April 4, 2018 This is actually very easy but might be interesting for someone anyhow (and I post it here as a reminder for myself). You can use Postman (https://chrome.google.com/webstore/detail/postman/fhbjgbiflinjbdggehcddcbncdddomop?hl=de) to send requests to your ProcessWire installation and test request answers. The problem is that $config->ajax will always return FALSE. To make the $config->ajax work properly you just need to add this key-value-pair to your requests: key: X-Requested-With value: XMLHttpRequest Happy AJAXing PS: This also works inside the admin, see post 3 5 1 Share this post Link to post Share on other sites
dragan 1,011 Posted April 4, 2018 Thanks for the tip. btw - PHPStorm has a REST client tool built-in (this is more of a reminder / info for other PHPStorm users - it's such a massive IDE that handy features like these can be easily missed) 2 Share this post Link to post Share on other sites
bernhard 3,314 Posted April 4, 2018 You can even use it inside the backend: Install Postman Interceptor extension Activate the extension in the browser and in the postman app Go to your desired admin page (eg /page/edit/?id=123) The request will show up in the history and you can modify it to your needs I'm doing a die('test') here in the admin, with tracy installed, of course 3 Share this post Link to post Share on other sites
szabesz 2,262 Posted April 4, 2018 4 hours ago, bernhard said: and I post it here as a reminder for myself Hehe. The PW forum is a nice snippets manager and knowledge base for free 2 Share this post Link to post Share on other sites
Gideon So 110 Posted April 5, 2018 This community is so awesome and helpful. Gideon 3 Share this post Link to post Share on other sites