php - posting data to cross server in angular 2 and wordpress -


i trying post data php page angular2 . generate correct url when use ajax call same url not hit php page.

let url = 'http://localhost/deals//wp-admin/admin-ajax.php?action=create&deal='+deal+'&price='+price;          console.log(url); // url web api         var headers = new headers();         headers.append("content-type", "application/jsonp");         return this._http.get(url, headers )                     .map(res => res.json() ); 


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - IE9 error '$'is not defined -