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

增加跨域配置

parent ef40732f
......@@ -28,6 +28,7 @@ public class CaptchaController {
@Autowired
private CaptchaApplication imageCaptchaApplication;
@CrossOrigin
@RequestMapping("/generate")
@ResponseBody
public Response<?> generateCaptcha(
......@@ -75,6 +76,7 @@ public class CaptchaController {
* @param request 请求对象
* @param data 请求体
*/
@CrossOrigin
@PostMapping("/check")
@ResponseBody
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