mattermost-community/mattermost-plugin-skype4business

AutodiscoverService fails in the online version of the plugin

Opened this issue · 1 comments

Cannot create a new meeting, because the AutodiscoverService fails:
Access to fetch at 'https://webdir2e.online.lync.com/Autodiscover/AutodiscoverService.svc/root/oauth/user' from origin 'https://5cf9b2c4cadf.ngrok.io' has been blocked by CORS policy: 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

@kosgrz Is this happening with Skype online and on-prem?

Looking at this issue, it seems the client can send a specific param in its request to tell the server to return the Access-Control-Allow-Origin header. Along with this issue, this stack overflow post recommend to use the cors option with the call to app.signInManager.signIn, but I don't see this function in the plugin's code. What are your thoughts on this @kosgrz?