Coder Social home page Coder Social logo

Comments (5)

reimorster avatar reimorster commented on May 22, 2024

the support for local development is currently horrible, I hope microsoft fellows work this out.

from generator-office.

reimorster avatar reimorster commented on May 22, 2024

i was stuck for about an hour with this. The only workout was to export the stub certificate created by gulp to a file (using chrome/export certificate) and manually registering the .cer file to the system. Additionally I created and shared a folder to myself (yeah, that is awkward), to put the manifest.xml generated by generator. That was the only way I figured out to the addins to show up on menu, since I have no office sharepoint 365 nor azure accounts.

Hope it helps somebody.

from generator-office.

martellaj avatar martellaj commented on May 22, 2024

We're talking about 2 different things. I'm talking about serving apps on localhost for Outlook add-ins. No need to export any certs there. @andrewconnell, any ideas? Would be nice to have a better solution before AngularConnect (if even possible).

from generator-office.

andrewconnell avatar andrewconnell commented on May 22, 2024

Nope... no way around this without buying a legit cert that I'm aware of. Office won't load addins from non-HTTP endpoints... it will only load from HTTPS. The only way to do this is to have a cert that your browser trusts. The easiest way to do this is to use self-signed certs, but the cert isn't in your trusted cert chain so the browser doesn't see it as legit.

The other option would be for a developer to procure a legit cert from a trusted root authority (Verisign, GoDaddy, etc) because they will already be trusted by your machine. However, to run it local you need to tweak the equiv hosts file to hijack the request for the legit domain -> localhost and start the site there.

On the Windows dev world, you VS does this for you the first time you start a site on HTTPS, VS creates the self signed cert & trusts it on your machine (prompting you both times). But on OSX, you need to do it manually (unless someone can write a script to automate it).

The good news is once you do this one time with a cert, you should be good for all projects across the life of the cert. We chose to use a specific NPM module because it includes certs so all projects created using this generator will use the same cert... thus once you do this the first time on a machine, you don't have to do it again.

from generator-office.

martellaj avatar martellaj commented on May 22, 2024

That's what I assumed, but figured I'd call it out and hope for the best. Thanks for the informed response.

from generator-office.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.