You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working on a browser extension and I'm trying to swich to wikibase-edit instead of making edits directly. Since the extension uses the browser session to make edits, I'm using the newly added browserSession: true credential setting.
wikibase-edit version: 7.0.2
Environment: Firefox 123.0.1 (64-bit)
When I try to make an edit. I get the following error:
Error: could not get tokens
The server does not respond with an error, but the response does not contain tokens but the follwoing warning:
Tokens may not be obtained when the same-origin policy is not applied.
In the context of a webextension, globalThis.location is a local script. In my case it is moz-extension://0f0a018a-2719-427a-9df6-84e39a92a619/background/index.html. To technically the request is crossorigin.
The text was updated successfully, but these errors were encountered:
I am working on a browser extension and I'm trying to swich to
wikibase-edit
instead of making edits directly. Since the extension uses the browser session to make edits, I'm using the newly addedbrowserSession: true
credential setting.When I try to make an edit. I get the following error:
The server does not respond with an error, but the response does not contain
tokens
but the follwoingwarning
:❌
wikibase-edit
tries to get the token from✅ This is how I got the token before switching to
wikibase-edit
:When I removed the
origin=*
parameter inwikibase-edit
, it worked just fine.Edit
The issue might be here.
In the context of a webextension,
globalThis.location
is a local script. In my case it ismoz-extension://0f0a018a-2719-427a-9df6-84e39a92a619/background/index.html
. To technically the request is crossorigin.The text was updated successfully, but these errors were encountered: