Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
ccf276ff
Commit
ccf276ff
authored
May 27, 2020
by
孙亚楠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
6c6e0e72
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
xgg-saas-admin/app/config/environment.js
+1
-1
xgg-saas-admin/app/config/routes/web.js
+1
-1
No files found.
xgg-saas-admin/app/config/environment.js
View file @
ccf276ff
...
...
@@ -27,7 +27,7 @@ module.exports = function (app) {
app
.
all
(
'*'
,
function
(
req
,
res
,
next
)
{
req
.
objs
=
system
;
res
.
header
(
'Access-Control-Allow-Origin'
,
'*'
);
res
.
header
(
'Access-Control-Allow-Headers'
,
'Content-Type, Content-Length, Authorization, Accept, X-Requested-With , yourHeaderFeild,
xggsaasplatform
sid'
);
res
.
header
(
'Access-Control-Allow-Headers'
,
'Content-Type, Content-Length, Authorization, Accept, X-Requested-With , yourHeaderFeild,
saasadmin
sid'
);
res
.
header
(
'Access-Control-Allow-Methods'
,
'PUT, POST, GET, DELETE, OPTIONS'
);
// res.header('Access-Control-Allow-Credentials', 'true');
res
.
header
(
'content-type'
,
'text/html;charset=UTF-8'
);
...
...
xgg-saas-admin/app/config/routes/web.js
View file @
ccf276ff
...
...
@@ -10,7 +10,7 @@ module.exports = function (app) {
var
jsonUser
=
req
.
session
.
user
;
// var jsonUser = null;
if
(
!
jsonUser
)
{
loginsid
=
req
.
headers
[
"saasa
_
"
]
||
""
;
loginsid
=
req
.
headers
[
"saasa
dminsid
"
]
||
""
;
jsonUser
=
await
redisClient
.
get
(
loginsid
);
if
(
jsonUser
)
{
jsonUser
=
JSON
.
parse
(
jsonUser
);
...
...
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