corssignalroffice-app

SignalR with Office Apps - "Error Access Denied error while negotiate connection."


I have three projects.

I am accessing cross-origin SignalR Host Application from Office Apps Web application. When I start the connection from hub I got "Error Access Denied" error while negotiate connection.". But Its working in Browser (for this I have created html application with same code and run in browser).

Environment: jquery-1.10.2.js, jquery.signalR-2.2.1, Office 2016

Thanks in Advance.


Solution

  • I found the root cause. Office apps requires SSL Connection to signalR Server.

    $.connection.hub.url = "https://localhost/Hub/signalr";