office-js-helpers
office-js-helpers copied to clipboard
DialogError: URL must be https
I'm using the attachments demo add-in. I'm debugging locally in Visual Studio, and I'm using Outlook on the web in Chrome.
I invoke the add-in's task pane by selecting a message with attachments, then clicking the Choose attachments add-in button:

Clicking the save icon by one of the attachments pops up an authentication dialog and it works fine.
Note: It will first pop up an Office SSO dialog, but SSO will ultimately fail, so it will fall back to the Authenticator class' dialog.
Clicking the save icon a second time will result in an error:
DialogError: URL has to be loaded over HTTPS.
Let me investigate it further. Could you provide me with a sample?
It's this one: https://github.com/OfficeDev/outlook-add-in-attachments-demo
I was also getting this error message when using authenticator.authenticate(endpointName) without configuring that endpoint with a baseUrl. Previously, I could give it a "", and it would work fine (due to the way I'm using webpack-dev-server). Now I need to actually give it an address starting with https://.