Dear Sir/Madam,
I had a working Angular/Node application will I added a Header to the POST
method. Now, the Node service is not getting invoked.
In my angular code I have the following:
const headerDict = {
'upload-type': 'false'
};
const requestOptions = {
headers: new HttpHeaders(headerDict),
};
this.httpClient.post<{message: string, returnVal: number}>(this.baseURL +
'/country', newData, requestOptions)
The url in the NODE side is '/api/country' for the POST method.
Please let me know what is the change in the URL when a Header is added.
Thanks in advance.
Regards,
Partha
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.