If your RESTful Web Service application has the Spring Security enabled and you need to enable Cross-origin Reference Sharing (CORS), you can do it by: Enabling the cors on the HTTPSecurity object and Creating a new Bean and configuring a CorsConfigurationSource like it is in the example below. A list of origins for which cross-origin requests are allowed. spring boot cors allow all. The values from each type and method level pair of annotations are added to a CorsConfiguration and then default values are applied via CorsConfiguration.applyPermitDefaultValues () . Connect and share knowledge within a single location that is structured and easy to search. NOTE: Be aware that this option establishes a high What do you call an episode that is not closely related to the main plot? There are two parts to successful cross-origin resource sharing proper resource headers from the server, and proper request headers from the client. BCD tables only load in the browser with JavaScript enabled. How to Insert Form Data into Database using PHP ? Going a bit deeper, in case of the established . This is a plus, since your design will be consistent across your project. You can use the following