Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class CustomAuthenticationEntryPoint implements AuthenticationEntryPoint
public void commence(HttpServletRequest request, HttpServletResponse response,
AuthenticationException authException) throws IOException, ServletException {

log.error("인증되지 않은 사용자 접근: {}", authException.getMessage());
log.warn("인증되지 않은 사용자 접근: {} {} - {}", request.getMethod(), request.getRequestURI(), authException.getMessage());

GeneralErrorCode errorCode = GeneralErrorCode.MISSING_AUTH_INFO;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
public CorsConfigurationSource corsConfigurationSource() {
var config = new org.springframework.web.cors.CorsConfiguration();
config.setAllowedOrigins(java.util.List.of(
"https://jobdri.site",
"https://www.jobdri.site",
"https://api.jobdri.site",
"http://localhost:5173",
"http://localhost:8080",
"http://localhost:3000"));
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/application-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ app:

server:
port: 8080
forward-headers-strategy: framework

management:
endpoints:
Expand Down
Loading