I had a similar issue calling my WebAPI. In the end I had to comment out the InMemoryDataService – as soon as I did this then the error went away and I was able to hit my WebAPI:
AngularJS 2 : Getting data from json file not working
More Related Contents:
- How can I chain HTTP calls in Angular 2?
- How to pass url arguments (query string) to a HTTP request on Angular?
- How to catch exception correctly from http.request()?
- What is httpinterceptor equivalent in angular2?
- Angular2 http.get() ,map(), subscribe() and observable pattern – basic understanding
- How to correctly set Http Request Header in Angular 2
- How to use angular2 http API for tracking upload/download progress
- Angular2 OPTIONS method sent when asking for http.GET [duplicate]
- How to cancel a HTTPRequest in Angular 2?
- What is the difference between POST and PUT in HTTP?
- How long do browsers cache HTTP 301s?
- Correct way to pass multiple values for same parameter name in GET request
- What is the difference between HTTP status code 200 (cache) vs status code 304?
- HTTP 1.0 vs 1.1
- How to set a timeout on a http.request() in Node?
- What should a Multipart HTTP request with multiple files look like? [duplicate]
- Cookie handling in Google Apps Script – How to send cookies in header?
- Difference between no-cache and must-revalidate
- HTTP status code for a partial successful request
- Why is my Hello World go server getting crushed by ApacheBench?
- How do I create a persistent vs a non-persistent cookie?
- Angular 2 – Chaining http requests
- RESTful Alternatives to DELETE Request Body
- How to send line break with curl?
- Share a cookie between two websites
- What is HTTP “Host” header?
- nginx upload client_max_body_size issue
- “Cannot GET /” with Connect on Node.js
- Is a URL with // in the path-section valid?
- What is a connection timeout during a http request