Skip to content

Commit

Permalink
Merge pull request #112 from IxxP-Girls/modify
Browse files Browse the repository at this point in the history
Fix: 헤더에 methods 들어가게 수정
  • Loading branch information
diddnwjd committed Mar 11, 2024
2 parents 2eaf3da + b0ad816 commit 74a5db5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public void addCorsMappings(CorsRegistry registry) {
.allowedMethods("GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS", "HEAD")
.allowedOrigins("http://localhost:8080", "https://localhost:5173", "http://43.202.13.38:8081", "https://www.culpop.shop", "https://my.culpop.shop", "https://a.culpop.vercel.app")
.allowedHeaders("Cookie")
.exposedHeaders("Set-Cookie")
.exposedHeaders("Access-Control-Request-Method")
.allowCredentials(true)
.maxAge(3600);
}
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/com/ixxp/culpop/service/PopupService.java
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,6 @@ public void deletePopup(Admin admin, int popupId) {
// 팝업 좋아요
@Transactional
public void likePopup(User user, int popupId) {
HttpHeaders headers = new HttpHeaders();
headers.set("Access-Control-Allow-Methods","GET,POST,OPTIONS,DELETE,PUT");
Popup popup = getValidPopup(popupId);
validatePopupLike(user, popupId);

Expand Down

0 comments on commit 74a5db5

Please sign in to comment.