OfficeDev / office-js-helpers

[ARCHIVED] A collection of helpers to simplify development of Office Add-ins & Microsoft Teams Tabs
MIT License
126 stars 56 forks source link

DialogError: URL must be https #78

Open jasonjoh opened 6 years ago

jasonjoh commented 6 years ago

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:

image

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.
WrathOfZombies commented 6 years ago

Let me investigate it further. Could you provide me with a sample?

jasonjoh commented 6 years ago

It's this one: https://github.com/OfficeDev/outlook-add-in-attachments-demo

IanVS commented 6 years ago

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://.