Changeset 800779d for springapp/src
- Timestamp:
- 08/07/22 18:55:02 (2 years ago)
- Branches:
- main
- Children:
- 6eba109
- Parents:
- 3e98cea
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
springapp/src/main/java/mk/profesori/springapp/Security/SecurityConfiguration.java
r3e98cea r800779d 10 10 import org.springframework.security.crypto.password.PasswordEncoder; 11 11 import org.springframework.security.web.SecurityFilterChain; 12 import org.springframework.web.servlet.config.annotation.CorsRegistry; 13 import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; 12 14 13 15 import lombok.RequiredArgsConstructor; … … 30 32 31 33 @Bean 34 public WebMvcConfigurer corsConfigurer() { 35 return new WebMvcConfigurer() { 36 @Override 37 public void addCorsMappings(CorsRegistry registry) { 38 registry.addMapping("/**").allowedOrigins("http://192.168.0.17:3000", "http://192.168.0.24:3000"); 39 } 40 }; 41 } 42 43 @Bean 32 44 protected SecurityFilterChain filterChain(HttpSecurity http) throws Exception { 33 45 http
Note:
See TracChangeset
for help on using the changeset viewer.