File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed
java/club/dnd5/portal/config Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 88import io .swagger .v3 .oas .annotations .security .SecurityScheme ;
99import lombok .RequiredArgsConstructor ;
1010import org .springframework .beans .factory .annotation .Autowired ;
11- import org .springframework .beans .factory .annotation .Value ;
1211import org .springframework .context .annotation .Bean ;
1312import org .springframework .context .annotation .Configuration ;
1413import org .springframework .http .HttpMethod ;
@@ -45,9 +44,6 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter implements W
4544 private final UserDetailsService customUserDetailsService ;
4645 private final RedirectToLowerCaseInterceptor redirectToLowerCaseInterceptor ;
4746
48- @ Value ("${allowed-origin-patterns}" )
49- private String originPatterns ;
50-
5147 @ Bean
5248 public JwtAuthenticationFilter jwtAuthenticationFilter (){
5349 return new JwtAuthenticationFilter (tokenProvider , customUserDetailsService );
@@ -101,7 +97,10 @@ public AuthenticationManager authenticationManagerBean() throws Exception {
10197 public void addCorsMappings (CorsRegistry registry ) {
10298 registry
10399 .addMapping ("/**" )
104- .allowedOriginPatterns (originPatterns )
100+ .allowedOrigins (
101+ "https://ttg.club/" ,
102+ "https://dev.ttg.club/"
103+ )
105104 .allowedMethods ("*" )
106105 .allowCredentials (true );
107106 }
Original file line number Diff line number Diff line change @@ -41,5 +41,3 @@ images.token.borders=/tokens/borders
4141ttg.img.url =https://img.ttg.club
4242ttg.url =https://ttg.club
4343ttg.dev.url =https://dev.ttg.club
44-
45- allowed-origin-patterns ="ttg.club, *.ttg.club"
You can’t perform that action at this time.
0 commit comments