The code i'm having problem is below: when i send the code to the laravel api, which i've already have a CORS middleware, can someone help me with that?
sorry for may english lol
const customHeaders = new HttpHeaders({
'Accepted-Encoding': 'application/json'
});
const customOptions = {
headers: customHeaders,
reportProgress: true,
};
const req = new HttpRequest('POST', `${this.baseUrl}/37`, formData, customOptions);
this.resetProgress();
return this.httpClient.request(req).pipe(
map(event => {
this.getStatusMessage(event);
}),
tap(message => console.log(message)),
last()
);
}
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2JqQcvU
via IFTTT
Aucun commentaire:
Enregistrer un commentaire