Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
uphrh-SunbirdEd-portal-old
Commits
b2508030
Unverified
Commit
b2508030
authored
4 years ago
by
Rajeev
Committed by
GitHub
4 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #4373 from deveshMantra/sss
Issue #SB-19616 fix:added forwarded for token in headers
parents
f2a0268d
baaee50d
release-2.10.3
Tags unavailable
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/app/helpers/deviceService.js
+2
-1
src/app/helpers/deviceService.js
with
2 additions
and
1 deletion
+2
-1
src/app/helpers/deviceService.js
+
2
−
1
View file @
b2508030
...
...
@@ -16,7 +16,8 @@ const getDeviceProfile = async (req, res) => {
'
Cache-Control
'
:
'
no-cache
'
,
'
Content-Type
'
:
'
application/json
'
,
'
Authorization
'
:
'
Bearer
'
+
envHelper
.
PORTAL_API_AUTH_TOKEN
,
'
X-REAL-IP
'
:
req
.
headers
[
'
x-real-ip
'
]
'
X-REAL-IP
'
:
req
.
headers
[
'
x-real-ip
'
],
'
X-FORWARDED-FOR
'
:
req
.
headers
[
'
x-real-ip
'
]
}
};
try
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets