Skip to content

Allow requesting sourcegraphURL permissions in options menu

Administrator requested to merge sourcegraph-url-permissions into master

Created by: lguychard

Fixes #2228

In certain cases, the browser extension might need to be granted permissions to the Sourcegraph URL, for example, if the Sourcegraph instance is setup behind an oauth2_proxy (#2228).

Permission requests must stem for a user gesture. What we do here is:

  • If a connection attempt to the Sourcegraph URL has failed, and the browser extensions does not have permissions for the Sourcegraph URL, tell the user he might need additional permissions. image
  • When clicking "grant [...] additional permissions", the user wil be presented with a Chrome prompt. image

Merge request reports

Loading