
--- src/main/java/com/example/educatback/config/SecurityConfig.java
+++ src/main/java/com/example/educatback/config/SecurityConfig.java
... | ... | @@ -45,7 +45,7 @@ |
45 | 45 |
@Bean |
46 | 46 |
public CorsConfigurationSource corsConfigurationSource() { |
47 | 47 |
CorsConfiguration configuration = new CorsConfiguration(); |
48 |
- configuration.setAllowedOrigins(List.of("http://takensoftai.iptime.org", "http://localhost.com")); // 클라이언트 애플리케이션의 도메인 |
|
48 |
+ configuration.setAllowedOrigins(List.of("http://takensoftai.iptime.org:38889", "http://localhost")); // 클라이언트 애플리케이션의 도메인 |
|
49 | 49 |
configuration.setAllowedMethods(List.of("GET", "POST", "PUT", "DELETE", "OPTIONS")); |
50 | 50 |
configuration.setAllowedHeaders(List.of("authorization", "content-type", "x-auth-token")); |
51 | 51 |
configuration.setAllowCredentials(true); // 쿠키를 포함한 요청 허용 |
... | ... | @@ -106,4 +106,4 @@ |
106 | 106 |
return authenticationConfiguration.getAuthenticationManager(); |
107 | 107 |
} |
108 | 108 |
|
109 |
-}(파일 끝에 줄바꿈 문자 없음) |
|
109 |
+} |
--- src/main/resources/application.properties
+++ src/main/resources/application.properties
... | ... | @@ -12,12 +12,14 @@ |
12 | 12 |
spring.jpa.show-sql=true |
13 | 13 |
#sql? ?? ????. |
14 | 14 |
spring.jpa.properties.hibernate.format_sql=true |
15 |
-logging.level.org.hibernate.SQL=DEBUG |
|
15 |
+logging.level.org.springframework=DEBUG |
|
16 |
+logging.level.org.springframework.web=DEBUG |
|
17 |
+logging.level.org.springframework.security=DEBUG |
|
16 | 18 |
logging.level.org.hibernate.type.descriptor.sql.BasicBinder=TRACE |
17 | 19 |
|
18 | 20 |
#server |
19 | 21 |
|
20 |
-server.address=takensoftai.iptime.org |
|
21 |
-server.port=32344 |
|
22 |
+server.address=192.168.0.195 |
|
23 |
+server.port=38888 |
|
22 | 24 |
server.servlet.session.timeout=30m |
23 |
-server.servlet.session.cookie.max-age=30m(파일 끝에 줄바꿈 문자 없음) |
|
25 |
+server.servlet.session.cookie.max-age=30m |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?