Bear Bibeault wrote:Why wouldn't the REST API return the correct protocol? It knows it, after all.
If the web service server was behind a SSL/TLS termination proxy, it would see
http even if the request used
https.
Edit: I just saw that Amazon was saying they were going to add a X-Forwarded-Proto header to identify the original protocol to deal with this specific case.
Mateus Lucio wrote:My API returns something like this:
As Bear mentioned,
you should be able to return a protocol-less/scheme-less reference such as: