Spring boot fix cors problem
Add @CrossOrigin annotation to the controller class.
Use @CrossOrigin annotation with specific attributes to customize CORS configuration.
Configure CORS globally using WebMvcConfigurer.
Use the @CrossOrigin annotation with specific attributes to control CORS for a specific controller method.
Configure CORS using properties in the application.properties or application.yml file.