Skip to content

Commit

Permalink
[FEAT] Controller CrossOrigin 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
ghdeo committed Oct 19, 2023
1 parent 169c8b2 commit 8221a82
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import java.util.List;

@CrossOrigin
@CrossOrigin(origins = "https://team-4.shinhansec-pda.net/")
@ControllerAdvice
@RestController
@RequestMapping("/api")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

import java.util.List;

@CrossOrigin
@CrossOrigin(origins = "https://team-4.shinhansec-pda.net/")
@RequiredArgsConstructor
@RestController
@RequestMapping("/api")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import javax.servlet.http.HttpServletResponse;
import java.util.Map;

@CrossOrigin
@CrossOrigin("https://team-4.shinhansec-pda.net/")
@RestController
@RequiredArgsConstructor
@RequestMapping("/api/v1")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@
import com.bull4jo.kkanbustock.member.service.MemberService;
import lombok.RequiredArgsConstructor;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;

@CrossOrigin("https://team-4.shinhansec-pda.net/")
@RestController
@RequiredArgsConstructor
@RequestMapping("/api")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

import java.util.List;

@CrossOrigin
@CrossOrigin(origins = "https://team-4.shinhansec-pda.net/")
@RestController
@RequiredArgsConstructor
@RequestMapping("/api")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

import java.util.List;

@CrossOrigin
@CrossOrigin(origins = "https://team-4.shinhansec-pda.net/")
@RestController
@RequiredArgsConstructor
@RequestMapping("/api")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

import java.util.List;

@CrossOrigin
@CrossOrigin(origins = "https://team-4.shinhansec-pda.net/")
@RestController
@RequiredArgsConstructor
@RequestMapping("/api")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

import java.util.List;

@CrossOrigin
@CrossOrigin(origins = "https://team-4.shinhansec-pda.net/")
@RequiredArgsConstructor
@RestController
@RequestMapping("/api")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

@CrossOrigin
@CrossOrigin(origins = "https://team-4.shinhansec-pda.net/")
@RestController
@RequestMapping("/api")
@RequiredArgsConstructor
Expand Down

0 comments on commit 8221a82

Please sign in to comment.