Skip to content

Commit

Permalink
Merge pull request #117 from 100-hours-a-week/hotfix/cors
Browse files Browse the repository at this point in the history
hotfix: URL 변경으로 인한 CORS 문제 해결, develop 병합
  • Loading branch information
49EHyeon42 authored Sep 2, 2024
2 parents ab4c33d + dea6609 commit 776e190
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@

import static org.springframework.security.config.Customizer.withDefaults;


import connectripbe.connectrip_be.auth.jwt.JwtAccessDeniedHandler;
import connectripbe.connectrip_be.auth.jwt.JwtAuthenticationEntryPoint;
import connectripbe.connectrip_be.auth.jwt.JwtAuthenticationFilter;

import java.util.Arrays;
import lombok.RequiredArgsConstructor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
Expand All @@ -22,8 +21,6 @@
import org.springframework.web.cors.CorsConfigurationSource;
import org.springframework.web.cors.UrlBasedCorsConfigurationSource;

import java.util.Arrays;

@Configuration
@EnableWebSecurity
@RequiredArgsConstructor
Expand Down Expand Up @@ -59,8 +56,8 @@ public CorsConfigurationSource corsConfigurationSource() {
CorsConfiguration configuration = new CorsConfiguration();
configuration.setAllowedOrigins(Arrays.asList(
"http://localhost:3000",
"https://dev.connectrip.kro.kr",
"https://connectrip.kro.kr"
"https://dev.connectrip.travel/",
"https://connectrip.travel/"
));
configuration.addAllowedMethod("*");
configuration.addAllowedHeader("*");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.JoinColumn;

import jakarta.persistence.Lob;

import jakarta.persistence.ManyToOne;
import jakarta.persistence.Table;
import java.time.LocalDateTime;
Expand Down Expand Up @@ -49,6 +52,7 @@ public class AccompanyPostEntity extends BaseEntity {
// fixme-noah: urlQrPath 임시 보류
private String urlQrPath;

@Lob
@Column(nullable = false)
private String content;

Expand All @@ -75,5 +79,4 @@ public void updateAccompanyPost(String title, LocalDateTime startDate, LocalDate
this.content = content;
this.customUrl = customUrl;
}

}

0 comments on commit 776e190

Please sign in to comment.