400 bad request on admin-ajax.php only using wp_enqueue_scripts action hook
I’ve been working on ajax lately. The tutorials you find on the net are all very similar and quite easy to implement.
But I always get a bad request 400 on my ajax-admin.php file.