How to allow Cross Domain Ajax calls to an Application in Spring Boot Application

You can allow Cross Domain Ajax calls to an application by just registering a new filter and then configure it to Allow-Origin : {your domain’s} or you can use a wild card “*” to allow the calls from all domains.

You can even Define the Custom Headers your application supports by defining them in a comma separated format , e.g Access-Control-Allow-Headers: “header-1,header-2,header3″