Skip to content

Commit

Permalink
Fix cross-origin problem
Browse files Browse the repository at this point in the history
  • Loading branch information
wrsuperboy committed Dec 13, 2023
1 parent 8070e52 commit cce30fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

@RestController
@RequestMapping("/post")
@CrossOrigin(origins = {"http://localhost:5173", "https://zealous-flower-07b62ba00.4.azurestaticapps.net/"})
@CrossOrigin(origins = {"http://localhost:5173", "https://zealous-flower-07b62ba00.4.azurestaticapps.net"})
public class PostController {
private final Logger log = LoggerFactory.getLogger(this.getClass());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

@RestController
@RequestMapping("/user")
@CrossOrigin(origins = {"http://localhost:5173", "https://zealous-flower-07b62ba00.4.azurestaticapps.net/"})
@CrossOrigin(origins = {"http://localhost:5173", "https://zealous-flower-07b62ba00.4.azurestaticapps.net"})
public class UserController {
@Resource
private UserService userService;
Expand Down

0 comments on commit cce30fc

Please sign in to comment.