Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
fj-captcha-service
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
郑磊
fj-captcha-service
Commits
64efe3fb
Commit
64efe3fb
authored
Jun 21, 2024
by
郑磊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加跨域配置
parent
ef40732f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
CaptchaController.java
...in/java/com/fanjiao/captcha/server/CaptchaController.java
+2
-0
No files found.
server/src/main/java/com/fanjiao/captcha/server/CaptchaController.java
View file @
64efe3fb
...
...
@@ -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
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment