EBernhardson added a comment.
While trying a few different things I found one way to cause this to fail,
although it's going the opposite way of this ticket, so not certain it's
related. In particular
1. Open commons-query and run an example query
2. Open browser settings and delete the wcqsSession cookie
3. Attempt to execute a query
This fails with a CORS error, particularly:
Access to XMLHttpRequest at
'https://commons.wikimedia.org/wiki/Special:OAuth/authenticate?oauth_token=redacted'
(redirected from
'https://commons-query.wikimedia.org/sparql?query=prefix%20schema:%20%3Chttp://schema.org/%3E%20SELECT%20*%20WHERE%20%7B%3Chttp://www.wikidata.org%3E%20schema:dateModified%20?y%7D&nocache=27434725')
from origin 'https://commons-query.wikimedia.org' has been blocked by CORS
policy: Response to preflight request doesn't pass access control check:
Redirect is not allowed for a preflight request.
I'm not sure what the appropriate action is here, it might be the intent that
this isn't supposed to be able to authenticate in the background, or it might
be an unintended limitation. While this ticket is likely about the contained
token expiring, rather than the cookie expiring, i suspect the result will be
similar with respect to it attempting to re-auth in the background.
TASK DETAIL
https://phabricator.wikimedia.org/T301650
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: EBernhardson
Cc: EBernhardson, Zbyszko, Aklapper, Dominicbm, karapayneWMDE, Invadibot,
MPhamWMF, maantietaja, FRomeo_WMF, CBogen, Nintendofan885, Akuckartz, Nandana,
JKSTNK, Namenlos314, Lahi, Gq86, Lucas_Werkmeister_WMDE, GoranSMilovanovic,
QZanden, EBjune, merbst, LawExplorer, _jensen, rosalieper, Scott_WUaS, Jonas,
Xmlizer, jkroll, Wikidata-bugs, Jdouglas, aude, Tobias1984, Manybubbles,
Lydia_Pintscher, Mbch331
_______________________________________________
Wikidata-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]