title: Spring Boot, Angular2, Cross-origin
body: <p>I have a web-server in Spring Boot. I can send HTTP requests to it and get answers from tools like Send HTTP. I also have a web site based on Angular2 whoich works too. Part of the functionality must include HTTP requests from the Angular2 running in Chrome to the Spring Boot server. Every time I do it I have an error in Chrome console: </p>
  
  <blockquote>
    <p><em>XMLHttpRequest cannot load 'URL Server'. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'URL Client' is therefore not allowed access</em>.</p>
  </blockquote>
  
  <p>I put into Spring server @CrossOrigin in all places where it makes sense: before @Controller, @RequestMapping, @GetMapping, but it did not help. What I am missing and how to overcome?
  Great thanks, a bit desperate, Levi</p>