Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
RuoYi Vue
Commits
ed693e89
Unverified
Commit
ed693e89
authored
Mar 15, 2022
by
若依
Committed by
Gitee
Mar 15, 2022
Browse files
!452 跨域问题
Merge pull request !452 from younger007/master
parents
526957e0
420a43cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
ruoyi-generator/src/main/java/com/ruoyi/generator/controller/GenController.java
View file @
ed693e89
...
...
@@ -204,7 +204,6 @@ public class GenController extends BaseController
private
void
genCode
(
HttpServletResponse
response
,
byte
[]
data
)
throws
IOException
{
response
.
reset
();
response
.
addHeader
(
"Access-Control-Allow-Origin"
,
"*"
);
response
.
addHeader
(
"Access-Control-Expose-Headers"
,
"Content-Disposition"
);
response
.
setHeader
(
"Content-Disposition"
,
"attachment; filename=\"ruoyi.zip\""
);
response
.
addHeader
(
"Content-Length"
,
""
+
data
.
length
);
...
...
Write
Preview
Supports
Markdown
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