The Situation
I am using azure apim to proxy requests from client to my web app backend. I am succesfully forwarding the requests through the apim, mainly to hide the my backend url from the client. So just to expose the proxy url. However i am struggling with forwarding the signalR connection request through my Azure APIM. I need to do this because the negotiation handshake exposes my backendurl since im directly requesting the backend endpoint.
The attempted solution
I’ve tried following this tutorial with LongPolling / ServerSentEvents: https://learn.microsoft.com/en-us/azure/azure-signalr/signalr-howto-work-with-apim.
How i am attempting to connect to signalrhub through APIM
The APIM endpoint for establishing connection
Operations needed as per the tutorial
definition of API settings
I’ve also added the APIM as a ClientEndpoint in the connection string that i use in my backend.
Response from connection request
Any pointers whatsoever would be appreciated, seems like a niche problem and cannot really find any similar problems on the internet. Also any other solutions other than going through APIM would also be great!
Thank you.
Ole Askeland is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.