Skip to content

Commit

Permalink
Merge pull request #63 from Team-KeepGoing/hotfix
Browse files Browse the repository at this point in the history
Fix :: change to https redirect
  • Loading branch information
miraexhoi authored Jul 1, 2024
2 parents bfbc3d3 + 1f44207 commit a4d5cee
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.keepgoing.keepserver.domain.user.security;
package com.keepgoing.keepserver.global.config;

import com.keepgoing.keepserver.domain.user.security.jwt.AuthEntryPointJwt;
import com.keepgoing.keepserver.domain.user.security.jwt.AuthTokenFilter;
Expand Down Expand Up @@ -66,7 +66,8 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
.requestMatchers("device/**").permitAll()
.requestMatchers("/v3/api-docs/**", "/swagger-ui/**").permitAll()
.anyRequest().permitAll()
).cors((a)-> a.configurationSource(corsConfigurationSource()));
).cors((a)-> a.configurationSource(corsConfigurationSource()))
.requiresChannel(channel -> channel.anyRequest().requiresSecure()); // HTTPS로 리다이렉트

http.authenticationProvider(authenticationProvider());

Expand Down

0 comments on commit a4d5cee

Please sign in to comment.