Comments (5)
the support for local development is currently horrible, I hope microsoft fellows work this out.
from generator-office.
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.
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.
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.
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)
- Cannot Remove Default Add-In HOT 3
- Generated vscode tasks.json file has invalid scripts that fail HOT 1
- Request to add more a hybrid template between modern ui (React) and custom functions HOT 2
- Outlook add-in disappearing after side loading in outlook app HOT 4
- Errors when creating new addin HOT 8
- Cannot find module 'is-ci' on ubuntu HOT 2
- How to install certificate on ubuntu without user interface? HOT 3
- The --prerelease switch doesn't fetch prerelease branch when JavaScript chosen HOT 1
- Running thru a proxy/corp environment
- Cannot select Typescript HOT 2
- Why is Angular not an option in "Choose a Framework"? HOT 1
- Node 20 not supported HOT 1
- unexpected behavior when compiling on a filesystem with other case-semantic in yo office add-ins HOT 7
- Update Deps HOT 2
- Unable to install CA cert for local development on Windows 10 with VSCode HOT 1
- Issues with registry value using npm start HOT 6
- Source file is corrupted when fetched from the Office-Addin-Taskpane-SSO repo HOT 2
- Remove Add-In HOT 3
- Changing accounts for generator offoice HOT 2
- Sideloading fails with invalid scope HOT 19
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from generator-office.