Describe the change
This replaces pm.request.url.getRemote() with pm.request.url.getHost() in the Postman pre-request script. This matches the behavior fix in my other PR #38 to support local debugging, as the signed host header is sent as just localhost (rather than with the port) by the SDK.
This change has been tested to be backwards compatible with App Config running on a standard port, including live Azure App Config.
Current behavior
The Postman pre-request script fails to authenticate when used with the emulator running directly on localhost on a non-standard port.
New behavior
The pre-request script authenticates successfully.
Describe the change This replaces
pm.request.url.getRemote()
withpm.request.url.getHost()
in the Postman pre-request script. This matches the behavior fix in my other PR #38 to support local debugging, as the signed host header is sent as justlocalhost
(rather than with the port) by the SDK.This change has been tested to be backwards compatible with App Config running on a standard port, including live Azure App Config.
Current behavior The Postman pre-request script fails to authenticate when used with the emulator running directly on localhost on a non-standard port.
New behavior The pre-request script authenticates successfully.
Additional context N/A