Use same protocol scheme as request to build the resources URLs