title: How to enable CORS at Spring Security level in Spring boot
body: <blockquote>
    <p>I am working with a spring boot application which uses Spring
    Security. I have tried @CrossOrigin to enable cors but it didn't work.</p>
  </blockquote>
  
  <p>If you want to find my error refer <a href="https://stackoverflow.com/questions/48919460/no-access-control-allow-origin-in-angular-with-spring-boot/48921394#48921394">this</a></p>
  
  <p><a href="https://spring.io/blog/2015/06/08/cors-support-in-spring-framework" rel="nofollow noreferrer">Spring Blogs</a> says that when we are working with <strong>spring security</strong>, we must <strong>enable cors at spring security level</strong>.</p>
  
  <p>And my project is below.</p>
  
  <p>Can anyone explain where should I put those configuration and how to find the spring security level.</p>