How my add-ins(Provider hosted) can know Host site URL where it is running?
Actually, In my case there are external and internal farm with different site URL (see below 2 URLs). Now, in my app, How to get the host site URL? There is single code which runs for both add-ins (external and internal).
External site: https://external.mycompany.com/sites/0028
Internal site: https://internal.mycompany.com/sites/0029