Create a Wordpress post with xmlrpc and jQuery Create a Wordpress post with xmlrpc and jQuery wordpress wordpress

Create a Wordpress post with xmlrpc and jQuery


While the origin policy will trip you up as Doug pointed out, you could have a script on one server post the results to the other, a sort of proxy. It's a bit of a hack, but it'd work. I'd personally use PHP and cURL to do it.


You cannot make a cross domain POST request using jQuery or any other JavaScript technology. This is because of the same origin policy required for security reasons. The only way you will be able to accomplish this is via a server proxy on the same domain, subdomain, protocol and port as the jQuery code.

Not sure what server technology you are using, but you could look into Simple PHP Proxy by Ben Alman.