mhpark / Edu_Tech star
박민혁 박민혁 2024-06-11
240611 mh linux
@78e337fb91499362f18674ed93c805e7b9789efa
src/main/java/com/example/educatback/config/SecurityConfig.java
--- src/main/java/com/example/educatback/config/SecurityConfig.java
+++ src/main/java/com/example/educatback/config/SecurityConfig.java
@@ -45,7 +45,7 @@
     @Bean
     public CorsConfigurationSource corsConfigurationSource() {
         CorsConfiguration configuration = new CorsConfiguration();
-        configuration.setAllowedOrigins(List.of("http://takensoftai.iptime.org", "http://localhost.com")); // 클라이언트 애플리케이션의 도메인
+        configuration.setAllowedOrigins(List.of("http://takensoftai.iptime.org:38889", "http://localhost")); // 클라이언트 애플리케이션의 도메인
         configuration.setAllowedMethods(List.of("GET", "POST", "PUT", "DELETE", "OPTIONS"));
         configuration.setAllowedHeaders(List.of("authorization", "content-type", "x-auth-token"));
         configuration.setAllowCredentials(true); // 쿠키를 포함한 요청 허용
@@ -106,4 +106,4 @@
         return authenticationConfiguration.getAuthenticationManager();
     }
 
-}
(파일 끝에 줄바꿈 문자 없음)
+}
src/main/resources/application.properties
--- src/main/resources/application.properties
+++ src/main/resources/application.properties
@@ -12,12 +12,14 @@
 spring.jpa.show-sql=true
 #sql? ?? ????.
 spring.jpa.properties.hibernate.format_sql=true
-logging.level.org.hibernate.SQL=DEBUG
+logging.level.org.springframework=DEBUG
+logging.level.org.springframework.web=DEBUG
+logging.level.org.springframework.security=DEBUG
 logging.level.org.hibernate.type.descriptor.sql.BasicBinder=TRACE
 
 #server
 
-server.address=takensoftai.iptime.org
-server.port=32344
+server.address=192.168.0.195
+server.port=38888
 server.servlet.session.timeout=30m
-server.servlet.session.cookie.max-age=30m
(파일 끝에 줄바꿈 문자 없음)
+server.servlet.session.cookie.max-age=30m
Add a comment
List