Skip to content

Commit

Permalink
fix:allow poolchub extension from cors error
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmy0006 committed Mar 29, 2024
1 parent 6f19d7f commit 9da5f12
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,11 @@
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.security.core.annotation.AuthenticationPrincipal;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/login")
@CrossOrigin(origins = "chrome-extension://doeamknhlolnflkmhbhkagganhjjbefe")
public class AuthController {
private final AuthService authService;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.security.core.annotation.AuthenticationPrincipal;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping(value="/baekjoon", produces = MediaType.APPLICATION_JSON_VALUE)
@RequiredArgsConstructor
@CrossOrigin(origins = "chrome-extension://doeamknhlolnflkmhbhkagganhjjbefe")
public class BaekjoonController {
private final BaekjoonService baekjoonService;

Expand Down

0 comments on commit 9da5f12

Please sign in to comment.