I'm currently writing an Outlook Add-in and was implementing clickjacking protection by showing the user a confirmation pop-up window before they complete a potentially dangerous action in the add-in.
It doesn't seem necessary to show these pop-ups when my add-in is running outside of a browser, though (e.g. in Outlook for Mac, or Outlook 2016).
Is there a way to detect whether my add-in is running in a browser vs. running in a native app? I've thought about inspecting the user-agent, but that seems a little fragile.
Edit: This is not the same question as Trusted way to get the host origin of an Office add-in because this question is about whether the add-in is being iframed at all, whereas being iframed is one of the starting assumptions in Trusted way to get the host origin of an Office add-in.