Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-activity-platform
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
李奇
2017-07-03 09:32:40 +0800
Commit
9bca4e6990daada1a635e9dbaa96ca8b3193f470
1 parent
935c292b
跨域配置修改
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
app.js
app.js
View file @
9bca4e6
...
...
@@ -51,7 +51,10 @@ const middleware = require('./middleware');
try
{
// 允许跨域
app
.
use
(
cors
());
app
.
use
(
cors
({
credentials
:
true
,
origin
:
'http://localhost:8080'
}));
// 用户信息
app
.
use
(
middleware
.
user
);
...
...
Please
register
or
login
to post a comment