If you are creating a mock-up with SoapUI,a free testing tool for REST and SOAP request and response, for Angular 2+ application you should remember to set inside your http header request
Access-Control-Allow-Origin : *
I add two images for helping your insert. The first shows the header you should add. If you want to add the header before you have to click the plus button(it's green).
The second image shows the insert the *. The value * permits to accept all the request from different hosts.
After this work my Angular application removed this annoying error in my console.
A big recourse that helped me to understand for creating my first mock up is this video. It will help you for creating a new mock-up inside SoapUi's environment without a server-side.