Commit 64efe3fb authored by 郑磊's avatar 郑磊

增加跨域配置

parent ef40732f
...@@ -28,6 +28,7 @@ public class CaptchaController { ...@@ -28,6 +28,7 @@ public class CaptchaController {
@Autowired @Autowired
private CaptchaApplication imageCaptchaApplication; private CaptchaApplication imageCaptchaApplication;
@CrossOrigin
@RequestMapping("/generate") @RequestMapping("/generate")
@ResponseBody @ResponseBody
public Response<?> generateCaptcha( public Response<?> generateCaptcha(
...@@ -75,6 +76,7 @@ public class CaptchaController { ...@@ -75,6 +76,7 @@ public class CaptchaController {
* @param request 请求对象 * @param request 请求对象
* @param data 请求体 * @param data 请求体
*/ */
@CrossOrigin
@PostMapping("/check") @PostMapping("/check")
@ResponseBody @ResponseBody
public Response<?> checkCaptcha( public Response<?> checkCaptcha(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment