added resolve api implementation with auto redirect fix for signing the http 302 response to the new location