View Single Post
 
Old 06-06-2017, 07:36 PM
akhandelwal akhandelwal is offline Windows 10 Office 2016
Novice
 
Join Date: Jun 2017
Posts: 1
akhandelwal is on a distinguished road
Default Word Add In Unable to Call REST API

Hi All, I have created a word add in using https://dev.office.com/docs/add-ins/word/word-add-ins . I am able to see my add in into WORD 2016.
Problem : I am unable to call the external REST api from home.js. It Says Access denied. However I have created a TEST Javascript file at the same location and try to access my service it is able to do that meaning my service has CORS enabled. because the JS is on some network and My service I am deploying locally.

Saying above is there any way to access my REST service from home.js. I have read this link https://dev.office.com/docs/add-ins/...cy-limitations so according to It CORS should work but it didint.

I am debugging the addin using F12chooser. Can someone let me know how to proceed.
Reply With Quote