JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
1,019 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Using a Word add-in, I'd like to make an external resource the subject of a fetch
call, then inserted into the task pane. I've gotten it to work but only if I hardcode the environment variable in the fetch
request header. A fairly recent question in Stack Overflow suggests that using environment variables during an add-in runtime isn't feasible. The question is how would I go about accessing the external resource which requires a bearer token that isn't hard-coded? Relatedly, can't seem to get process.env.<ENV_VAR>
to work within taskpane.js