1
私はAngular 2とIEとChromeでうまく動作する私のアプリケーションには新しいです。しかし、Firefoxで試してみると、PHPスクリプトを呼び出す投稿要求はFirefox内では機能しません。Angular 2 POST with Firefox
postApplicant(newApplicant: Applicant): Observable<string> {
let body = `firstName=${newApplicant.firstName}&lastName=${newApplicant.lastName}`;
let headers = new Headers({ 'Content-Type': 'application/x-www-form-urlencoded' });
headers.append('Accept', 'q=0.8;application/json;q=0.9');
let options = new RequestOptions({ headers: headers });
return this.http.post(this.emailUrl, body, options)
.map(res => <string> res.json())
.catch(this.handleError)
}
ください。 、より正確になる、エラーを投稿する – 0x13a
問題についてはっきりしないが、refrenceを確認できるhttp://stackoverflow.com/a/37290319/5868331 – mayur