cribeiro84 / azure-devops-pull-request-hub

Azure DevOps Pull Request Manager Hub
MIT License
57 stars 35 forks source link

Error when third party cookies are blocked #240

Closed JBlitzard closed 1 year ago

JBlitzard commented 1 year ago

Our company policy requires that 3rd party cookies are blocked. The plugin will not load when they are not enabled.

To Reproduce Steps to reproduce the behavior:

  1. In the browser go to settings -> Cookie settings -> Block Third party cookies
  2. Open the Pull Request Manager hub and it will show the following errors:
    • "Your browser is blocking 'localStorage' API. Save current filters and last visit on PR will not work as expected."
    • "There was an error during the extension load: SecurityError: Failed to read the 'localStorage' property from 'Window': Access is denied for this document."
  3. When I enter https://caribeiro84.gallerycdn.vsassets.io to the 'safe list' the plugin works, but that is not desirable.

Expected behavior No calls to https://caribeiro84.gallerycdn.vsassets.io to make use of the plugin.

Desktop (please complete the following information):

JBlitzard commented 1 year ago

Found the solution at https://learn.microsoft.com/en-us/azure/devops/organizations/security/allow-list-ip-url?view=azure-devops&tabs=IP-V4 and https://learn.microsoft.com/en-us/azure/devops/extend/develop/static-content?view=azure-devops