URLs with http

45 views
Skip to first unread message

Aroldo Rique Júnior

unread,
Oct 11, 2024, 3:01:55 PM10/11/24
to DSpace Technical Support
Hello.

We have a doubt.

The backend of our dspace 7.5 is configured with https, but the urls returned by the api are with http.

Example URL: https://biblioteca.mpf.mp.br/server/api/authz/authorizations/search/object?uri=https://biblioteca.mpf.mp.br/server/api/core/bitstreams/ 8a9c237b-e7d8-4af7-aa94-a2c82e30b8d7&feature=canDownload&embed=feature

Return:

{
  "_embedded" : {
    "authorizations" : [ {
      "id" : "canDownload_core.bitstream_8a9c237b-e7d8-4af7-aa94-a2c82e30b8d7",
      "type" : "authorization",
      "_links" : {
        "eperson" : {
          "href" : "http://biblioteca.mpf.mp.br/server/api/authz/authorizations/canDownload_core.bitstream_8a9c237b-e7d8-4af7-aa94-a2c82e30b8d7/eperson"
        },
        "feature" : {
          "href" : "http://biblioteca.mpf.mp.br/server/api/authz/authorizations/canDownload_core.bitstream_8a9c237b-e7d8-4af7-aa94-a2c82e30b8d7/feature"
        },
        "object" : {
          "href" : "http://biblioteca.mpf.mp.br/server/api/authz/authorizations/canDownload_core.bitstream_8a9c237b-e7d8-4af7-aa94-a2c82e30b8d7/object"
        },
        "self" : {
          "href" : "http://biblioteca.mpf.mp.br/server/api/authz/authorizations/canDownload_core.bitstream_8a9c237b-e7d8-4af7-aa94-a2c82e30b8d7"
        }
      },
      "_embedded" : {
        "feature" : {
          "id" : "canDownload",
          "description" : "It can be used to verify if the user can download a bitstream",
          "type" : "feature",
          "resourcetypes" : [ "core.bitstream" ],
          "_links" : {
            "self" : {
              "href" : "http://biblioteca.mpf.mp.br/server/api/authz/features/canDownload"
            }
          }
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "http://biblioteca.mpf.mp.br/server/api/authz/authorizations/search/object?uri=https://biblioteca.mpf.mp.br/server/api/core/bitstreams/8a9c237b-e7d8-4af7-aa94-a2c82e30b8d7&feature=canDownload"
    }
  },
  "page" : {
    "size" : 20,
    "totalElements" : 1,
    "totalPages" : 1,
    "number" : 0
  }
}


Why don't these links start with https?

Aroldo


DSpace Technical Support

unread,
Oct 24, 2024, 1:52:04 PM10/24/24
to DSpace Technical Support
Hi Aroldo,

This issue is documented in one of our "Common Installation Issues" in the installation docs:


As noted there, you likely need to set the "X-Forwarded-Proto: https" header in your Apache or Nginx settings.

Tim

Aroldo Rique Júnior

unread,
Oct 25, 2024, 1:13:00 PM10/25/24
to DSpace Technical Support
Thanks, Tim!

Aroldo

--
All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
---
You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/dspace-tech/267c71f1-c666-490e-9b6b-0b86ec3ed424n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages