Thanks for your kind attention, Mr. Lucas.

I solved it. I had to allow 'upload-type' as one of the allowed headers in
Node end.
Partha Majumdar
http://www.partha.majumdar.org



On Tue, Oct 16, 2018 at 7:39 AM 'Lucas Lacroix' via Angular and AngularJS
discussion <angular@googlegroups.com> wrote:

> Nothing changes in the URL when you add headers. They are completely
> separate.
>
> I suggest you check the logs on your server or the developer tools in your
> browser. Either of those may point to your issue
>
> On Mon, Oct 15, 2018, 22:01 Partha Majumdar <partha6...@gmail.com> wrote:
>
>> 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 angular+unsubscr...@googlegroups.com.
>> To post to this group, send email to angular@googlegroups.com.
>> Visit this group at https://groups.google.com/group/angular.
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> Lucas Lacroix
> Computer Scientist
> Advanced Technology Division, MEDITECH <http://ehr.meditech.com/>
> 781-774-2293
>
> <https://ehr.meditech.com/expanse>
>             <https://www.linkedin.com/company/meditech>
> <https://twitter.com/MEDITECH>   <https://www.facebook.com/MeditechEHR>
> Subscribe
> <https://info.meditech.com/get-great-meditech-content?hsCtaTracking=864299ec-5abf-4004-9c6d-2d051794101f%7Cc911be42-538a-4a48-8dca-a6d4001c6326>
>  to
> receive emails from MEDITECH or to change email preferences.
>
> --
> 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 angular+unsubscr...@googlegroups.com.
> To post to this group, send email to angular@googlegroups.com.
> Visit this group at https://groups.google.com/group/angular.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to