element-hq / element-integration-manager

Element Integration Manager related issues
6 stars 1 forks source link

Error occured during widget load: The operation is insecure #46

Closed msrd0 closed 1 year ago

msrd0 commented 1 year ago

Describe the bug

I just got a notification that the old Github integration is deprecated and I should update. Adding the new Github integration results in the following error message, which prevents any configuration:

image

To Reproduce Steps to reproduce the behavior:

  1. Go to a room
  2. Add new Github integration

Desktop (please complete the following information):

Half-Shot commented 1 year ago

Hiya, having looked into this, it appears to be the Firefox privacy settings causing this one:

image

If you set the privacy setting to anything more lax than "Cookies from unvisited web sites" then this should work, but Firefox seems to be blocking cookies from websites you haven't directly visited. The integration manager works by loading in an iframe of the bridge's configuration widget, so it's entirely possible that it's paranoid about that.

The Strict setting should also work. In the meantime, we will look into how to make it less paranoid.

msrd0 commented 1 year ago

These are my settings, and they're staying that way. I hope you can find a way to make the integration work with these settings.

Screenshot_2023-03-23-10-43-41

Half-Shot commented 1 year ago

Right, solution coming up in https://github.com/matrix-org/matrix-hookshot/pull/678. The use of local storage in this case is an optimisation, but we can work around it.

Half-Shot commented 1 year ago

Workaround was deployed.