Skip to content

Commit

Permalink
Merge pull request #22 from pick-time/feature/fix-cors
Browse files Browse the repository at this point in the history
(임시) cors *로 수정
  • Loading branch information
comody authored Jul 14, 2023
2 parents 6821d8a + 3bdbb2d commit f8d0a99
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/teo15/picktimebe/config/WebConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class WebConfig implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOriginPatterns("https://api.picktime.store","https://pick-time.vercel.app", "http://192.168.219.101:3000", "http://localhost:3000")
.allowedOriginPatterns("*")//"https://api.picktime.store","https://pick-time.vercel.app", "http://192.168.219.101:3000", "http://localhost:3000")
.allowedMethods("*")
.allowedHeaders("*")
.exposedHeaders("Content-Type")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ public ResponseEntity<GiftResponse> getGiftListByTargetId(@PathVariable("targetI
* TODO 선물생성 - 상품
*/
@PostMapping("/{targetId}")
@CrossOrigin(origins = {"https://api.picktime.store","https://pick-time.vercel.app", "http://192.168.219.101:3000", "http://localhost:3000"})
@ApiOperation(value = "선물 생성", notes = "선물을 생성하고, 선물 리스트와 주는사람 받는사람 이름을 응답", response = GiftResponse.class)
public ResponseEntity<GiftResponse> createGift(@PathVariable("targetId") Long targetId, @RequestBody PostGiftRequest request) {
return ResponseEntity.ok(giftService.createAndgetList(targetId, request));
Expand Down

0 comments on commit f8d0a99

Please sign in to comment.