title: Azure Web App with Azure SingnalR - Private endpoints changes wss to https and throws CORS erros
body: <p>I deployed a sample MS Blazor server application in Azure Web App and Ref. an Azure SignalR service as well from thihs Web App.</p>
  <p>1st I made the Azure SignalR as public as below.</p>
  <p><a href="https://i.stack.imgur.com/QFsBk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QFsBk.png" alt="enter image description here" /></a></p>
  <p>My Web App is able to connect to the Azure SignalR. Ref. below track from browser.</p>
  <blockquote>
  <p>WebSocket connected to
  <em><strong>wss://syncfusionblazorservice.service.signalr.n</strong>e</em>t/client/?hub=componenthub&amp;asrs.op=%2F_blazor&amp;negotiateVersion=1&amp;asrs_request_id=4Vy5v2IfAAA%3D&amp;id=bDIxMkP-NT2nQkia9YeDfA48cf3bb91&amp;access_token=eyJhbGciOiJIUzI1NiIsImtpZCI6IkNwTVpMbWxJV01sUG9xWVR0am9xNXFuNHNQM1JEcVpJTHdjQW1MWm43MFU9IiwidHlwIjoiSldUIn0.eyJuYmYiOjE2NDc1MTA0MzYsImV4cCI6MTY0NzUxNDAzNiwiaWF0IjoxNjQ3NTEwNDM2LCJhdWQiOiJodHRwczovL3N5bmNmdXNpb25ibGF6b3JzZXJ2aWNlLnNlcnZpY2Uuc2lnbmFsci5uZXQvY2xpZW50Lz9odWI9Y29tcG9uZW50aHViIn0.yHlIWpE3_qX03v5T26ZuXdUXWy4Zx10J07HvAActqeE.</p>
  </blockquote>
  <p>Please notice as above sucessful connection used a wss:// URL.</p>
  <p>later I disabled the public access to Azure SignalR and tried to access it using an azure Private Endpoint. Now Ref. below browser track which is throwing error</p>
  <blockquote>
  <p><em>Access to fetch at '<strong>https://syncfusionblazorservice.service.signalr.net</strong>/client/negotiate?hub=componenthub&amp;asrs.op=%2F_blazor&amp;negotiateVersion=1&amp;asrs_request_id=EIgI9WEfAAA%3D'
  from origin 'https://epdone.azurewebsites.net' has been blocked by
  CORS policy: Response to preflight request doesn't pass access control
  check: No 'Access-Control-Allow-Origin' header is present on the
  requested resource. If an opaque response serves your needs, set the
  request's mode to 'no-cors' to fetch the resource with CORS disabled.</em></p>
  </blockquote>
  <p>2 issues are here.</p>
  <ol>
  <li>The wss:// URL of azure signalr has been Ref. wrongly as https://</li>
  <li>As of above issue CORS error also throwing</li>
  </ol>
  <p>My question is that why private endpoint is trying to access signalR URL as https://, where once public access has enablded, its taking the correct wss:// url?</p>