id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc,focuses 11062,Front-end ajax handler,prettyboymp,,"Just wanted to start a discussion on ajax handling for requests from the front-end (non-admin) of the site. There are a couple of things I've come across with this: First is using admin-ajax.php causes problems if you have the admin running under a different domain than the front-end. Using site_url instead of admin_url fixes the issue with cross site ajax posts, but you still may have to add some extra handling to keep the admin from redirecting to the admin's domain. Extra steps that I think could be easily resolved. The second issue I've come across is when multiple plugins need a javascript variable to designate the url to admin-ajax.php. They either need to share one variable (unsafe dependency), or each have their own variable set. I'm curious as to what other developers do, or if anyone feels we should add separate handling for front-end ajax along with a built in enqueueable script that sets the ajax url. I'm ",enhancement,closed,normal,,General,2.9,normal,wontfix,,,