I am trying to get a jQuery GET request out from my Office (Outlook) add-in, but am only getting the error message "Access denied". Documentation is really sparse, or at least hard to find, at this point. Anyone know what could be wrong?
Cross-origin resource sharing (or CORS) can be used to make AJAX requests to another domain.
CORS Proxy Servers can specify that they want browsers to allow other websites to request resources they host. CORS Proxy is simply an HTTP Proxy that adds a header to responses saying "anyone can request this".
After much searching, I happened upon the solution by chance. In the file add-in manifest file, there is a tab where one can whitelist domains for requests. Just add the domain in question, and you should be golden.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With