Change href link in HAL Browser

83 views
Skip to first unread message

Hafiidh Akbar

unread,
Apr 17, 2023, 7:23:21 AM4/17/23
to DSpace Community
Hello,
I'm trying to run DSpace on container using docker and orchestrate it using docker swarm. I modify few configuration so it can run the frontend and HAL Browser in HTTPS domain. But there's an issue that the frontend is keep accessing the HTTP domain of HAL Browser. When I open the inspect element in browser it said "Mixed content: load all resources via HTTPS to improve the security of your site".
When I check in the HAL Browser page, in "Response Body" panel, only "self" line's href is referred to HTTP address, the other line is HTTPS.
image_2023-04-17_105546207.png
The question, is it possible to change the href in self line to HTTPS? if it possible then how?
Thanks

Tim Donohue

unread,
Apr 21, 2023, 10:50:14 AM4/21/23
to DSpace Community
Hi,

You may be hitting this common installation issue.  The fix is to ensure the "X-Forwarded-Proto: https" header is set in your proxying service (e.g. Apache or Nginx).


Tim

Hafiidh Akbar

unread,
Apr 25, 2023, 11:48:26 PM4/25/23
to DSpace Community
Just applied this, it is working now
Thank you
Reply all
Reply to author
Forward
0 new messages