Failed to execute 'setRequestHeader' on 'XMLHttpRequest': 'Access- Control - Allow - Methods' is not a valid HTTP header field name in angular

20 views
Skip to first unread message

rahul patil

unread,
Aug 21, 2020, 10:23:19 AM8/21/20
to Angular and AngularJS discussion

I am calling asp.net web service in angular but give an error Failed to execute 'setRequestHeader' on 'XMLHttpRequest': 'Access- Control - Allow - Methods' is not a valid HTTP header field name.

I create a service using this command in angular:

ng generate service backendservice  

below is my question 


I am facing error last couple of days


help



Reply all
Reply to author
Forward
0 new messages