version_2
floxx2112 1 year ago
parent d12344a67b
commit 6ea78fb75d
  1. 11
      Dockerfile
  2. 2
      src/main/java/com/apside/assist/db/backend/AssistDBBackendApplication.java

@ -0,0 +1,11 @@
FROM eclipse-temurin:19-jdk-jammy
WORKDIR /app
COPY .mvn/ .mvn
COPY mvnw pom.xml ./
RUN ./mvnw dependency:resolve
COPY src ./src
CMD ["./mvnw", "spring-boot:run"]

@ -25,7 +25,7 @@ public class AssistDBBackendApplication {
public CorsFilter corsFilter() {
CorsConfiguration corsConfiguration = new CorsConfiguration();
corsConfiguration.setAllowCredentials(true);
corsConfiguration.setAllowedOrigins(Arrays.asList("http://localhost:9002"));
corsConfiguration.setAllowedOrigins(Arrays.asList("http://178.18.0.4:9002", "http://localhost:9002"));
corsConfiguration.setAllowedHeaders(Arrays.asList("Origin", ACCESS_CONTROL, "Content-Type",
"Accept", "Authorization", "Origin, Accept", "X-Requested-With",
"Access-Control-Request-Method", "Access-Control-Request-Headers"));

Loading…
Cancel
Save