Skip to content

Commit a384764

Browse files
committed
work
1 parent 63dfcba commit a384764

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

backend/src/main/java/com/ai/lawyer/global/security/SecurityConfig.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
4343
.requestMatchers("/api/auth/**", "/api/public/**").permitAll()
4444
.requestMatchers("/v3/api-docs/**", "/swagger-ui/**", "/swagger-ui.html").permitAll()
4545
.requestMatchers("/api/posts/**").permitAll()
46+
.requestMatchers("/api/precedent/**").permitAll()
47+
.requestMatchers("/api/law/**").permitAll()
48+
.requestMatchers("/api/law-word/**").permitAll()
4649
.requestMatchers("/h2-console/**").permitAll()
4750
.requestMatchers("/api/chat/**").authenticated()
4851
.anyRequest().authenticated()
@@ -61,7 +64,7 @@ public PasswordEncoder passwordEncoder() {
6164
@Bean
6265
public CorsConfigurationSource corsConfigurationSource() {
6366
CorsConfiguration configuration = new CorsConfiguration();
64-
configuration.setAllowedOrigins(List.of("http://localhost:3000"));
67+
configuration.setAllowedOrigins(List.of("http://localhost:3000, https://www.trybalaw.com"));
6568
configuration.setAllowedMethods(List.of("GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS"));
6669
configuration.setAllowedHeaders(List.of("*"));
6770
configuration.setAllowCredentials(true);

backend/src/main/resources/application-dev.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,12 @@ spring:
77
jpa:
88
hibernate:
99
ddl-auto: ${DEV_JPA_HIBERNATE_DDL_AUTO}
10+
properties:
11+
hibernate:
12+
dialect: org.hibernate.dialect.MySQLDialect
1013
data:
1114
redis:
1215
host: ${DEV_REDIS_HOST}
1316
port: ${DEV_REDIS_PORT}
1417
password: ${DEV_REDIS_PASSWORD}
15-
embedded: true
18+
embedded: false

0 commit comments

Comments
 (0)