title: Spring Boot enabling CORS by application.properties
body: <p>I using Spring Boot API RESTful that get up automatically by your Entities Class. I'm consuming this apiRest from a front-end web app but it gives me this error:</p>
  
  <blockquote>
    <p>No 'Access-Control-Allow-Origin' header is present on the requested resource</p>
  </blockquote>
  
  <p>I'm setting the CORS configuration using the applicantion.properties specified <a href="http://docs.spring.io/spring-boot/docs/current/reference/html/production-ready-endpoints.html" rel="noreferrer">here</a>.</p>
  
  <p>My basic configuration is:</p>
  
  <pre><code>endpoints.cors.allow-credentials=true
  endpoints.cors.allowed-origins=*
  endpoints.cors.allowed-methods=*
  endpoints.cors.allowed-headers=*
  </code></pre>
  
  <p>I have tried different combinations in those variables but still not working. Any ideas?</p>