title: Angular 4 http get request - Exception: A network error occured
body: <p>I am trying to connect my ionic / angular app to a spring boot back end. I check the back end with postman and am able to get a result from the get request. When I do it with my app I get "A network error occurred". I am just learning angular - but I do another get request to firebase - and that request works fine. After doing some research ppl suggested it might be related to CORS - I have Cross Origins enabled on the spring boot app - also downloaded the extension to turn off just to make sure. </p>
  
  <p>Any help would be great! Code below.</p>
  
  <p><a href="https://i.stack.imgur.com/bCP8z.png" rel="nofollow noreferrer">Error Message</a></p>
  
  <p><a href="https://i.stack.imgur.com/znhUu.png" rel="nofollow noreferrer">localhost:8080</a></p>
  
  <p><a href="https://i.stack.imgur.com/pcnpb.png" rel="nofollow noreferrer">Springboot Controller</a></p>
  
  <p>(from service)</p>
  
  <pre><code>getTimesheets() {
      console.log('Service: getTimesheets()')
      console.log('URL: ' + this.url)
  
      return this.http
          .get(this.url)
          .subscribe(data =&gt; {
              console.log(data)
          });
  }
  </code></pre>
  
  <p>(from timesheet.ts)</p>
  
  <pre><code>getTimeSheets() {
      this.timeSheetService.getTimesheets()
    }
  </code></pre>