"addCorsMappings registry.addMapping" Code Answer's

You're definitely familiar with the best coding language CSS that developers use to develop their projects and they get all their queries like "addCorsMappings registry.addMapping" answered properly. Developers are finding an appropriate answer about addCorsMappings registry.addMapping related to the CSS coding language. By visiting this online portal developers get answers concerning CSS codes question like addCorsMappings registry.addMapping. Enter your desired code related query in the search bar and get every piece of information about CSS code related question on addCorsMappings registry.addMapping. 

addCorsMappings registry.addMapping

By Fair FlyFair Fly on Feb 24, 2021
//for Spring Boot
@Configuration
@EnableWebMvc
public class WebConfig extends WebMvcConfigurerAdapter {
    @Override
    public void addCorsMappings(CorsRegistry registry) {
        registry.addMapping("/api/**")
            .allowedOrigins("http://domain2.com")
            .allowedMethods("PUT", "DELETE")
            .allowedHeaders("header1", "header2", "header3")
            .exposedHeaders("header1", "header2")
            .allowCredentials(false).maxAge(3600);
    }
}

Source: stackoverflow.com

Add Comment

0

All those coders who are working on the CSS based application and are stuck on addCorsMappings registry.addMapping can get a collection of related answers to their query. Programmers need to enter their query on addCorsMappings registry.addMapping related to CSS code and they'll get their ambiguities clear immediately. On our webpage, there are tutorials about addCorsMappings registry.addMapping for the programmers working on CSS code while coding their module. Coders are also allowed to rectify already present answers of addCorsMappings registry.addMapping while working on the CSS language code. Developers can add up suggestions if they deem fit any other answer relating to "addCorsMappings registry.addMapping". Visit this developer's friendly online web community, CodeProZone, and get your queries like addCorsMappings registry.addMapping resolved professionally and stay updated to the latest CSS updates. 

CSS answers related to "addCorsMappings registry.addMapping"

View All CSS queries

CSS queries related to "addCorsMappings registry.addMapping"

Browse Other Code Languages

CodeProZone