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
Post a Comment