autdant commited on
Commit
133ea0c
·
1 Parent(s): 29acb25

cập nhật cors, pom

Browse files
connexa-parent/connexa-admin/src/main/java/org/connexa/connexaadmin/security/SecurityConfig.java CHANGED
@@ -56,7 +56,7 @@ public class SecurityConfig {
56
  .csrf(csrf -> csrf.disable())
57
  .cors(cors -> cors.configurationSource(request -> {
58
  CorsConfiguration config = new CorsConfiguration();
59
- config.setAllowedOrigins(List.of("http://localhost" +":3001")); // cho phép Next.js
60
  config.setAllowedMethods(List.of("GET", "POST", "PUT", "DELETE", "OPTIONS", "PATCH"));
61
  config.setAllowedHeaders(List.of("*"));
62
  config.setAllowCredentials(true); // cần thiết khi bạn dùng cookie refreshToken
 
56
  .csrf(csrf -> csrf.disable())
57
  .cors(cors -> cors.configurationSource(request -> {
58
  CorsConfiguration config = new CorsConfiguration();
59
+ config.setAllowedOrigins(List.of("http://localhost" +":3000")); // cho phép Next.js
60
  config.setAllowedMethods(List.of("GET", "POST", "PUT", "DELETE", "OPTIONS", "PATCH"));
61
  config.setAllowedHeaders(List.of("*"));
62
  config.setAllowCredentials(true); // cần thiết khi bạn dùng cookie refreshToken
connexa-parent/pom.xml CHANGED
@@ -183,10 +183,10 @@
183
  <groupId>org.springframework.boot</groupId>
184
  <artifactId>spring-boot-maven-plugin</artifactId>
185
  <configuration>
186
- <excludes>
187
  <groupId>org.projectlombok</groupId>
188
  <artifactId>lombok</artifactId>
189
- </excludes>
190
  </configuration>
191
  </plugin>
192
  </plugins>
 
183
  <groupId>org.springframework.boot</groupId>
184
  <artifactId>spring-boot-maven-plugin</artifactId>
185
  <configuration>
186
+ <exclude>
187
  <groupId>org.projectlombok</groupId>
188
  <artifactId>lombok</artifactId>
189
+ </exclude>
190
  </configuration>
191
  </plugin>
192
  </plugins>