Wednesday, 18 September 2019

Connecting to two SignalR websites using Android with different site names on same IIS

The host header needs to be set with the target domain 

mHubConnection = new HubConnection(serverUrl);Credentials credentials = new Credentials() {
    @Override    public void prepareRequest(Request request) {
        request.addHeader("Host", "domain name");    }
};mHubConnection.setCredentials(credentials);

No comments:

Post a Comment