Search
 
SCRIPT & CODE EXAMPLE
 

CSS

addCorsMappings registry.addMapping

//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);
    }
}
Comment

PREVIOUS NEXT
Code Example
Css :: -webki slider runnable track 
Css :: combine binary numbers 
Css :: Creating Hashnode logo with CSS 
Css :: cliping setting 
Css :: Fluid typography for Safari 
Css :: scss add class to body 
Css :: bootstrap quebra de linha na tabela 
Css :: css 30% height visible 
Css :: animating a text in css 
Css :: how to make father padding doesnt affect child 
Css :: css webkit propert dissapears on build sass 
Css :: css widows 
Css :: style placeholder 
Css :: RichText.Content add className 
Css :: csshx iterm2 
Css :: formatage date css 
Css :: h-screen in tailwind css 
Css :: how can i reset the paswd of my subrion admin panel 
Css :: prevent child margin from moving parent css 
Css :: css trigger animation 
Css :: css disabled option 
Css :: how to pass html number to css 
Css :: Basic sintax media Query 
Css :: how to apply a background image in css 
Css :: tailwindcss link tag 
Css :: customize checkbox 
Typescript :: mongodb exists and not null 
Typescript :: react children typescript 
Typescript :: form submit event typescript 
Typescript :: convert htmlcollection to array 
ADD CONTENT
Topic
Content
Source link
Name
8+2 =