When $wgWikiGrokUIEnableForAnons is set to True, I see a WikiGrok dialog, but when submitting my response, I get the following error:
Anonymous users cannot obtain a centralauthtoken
When $wgWikiGrokUIEnableForAnons is set to True, I see a WikiGrok dialog, but when submitting my response, I get the following error:
Anonymous users cannot obtain a centralauthtoken
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
ForeignApi: Allow posting for anonymous users | mediawiki/extensions/MobileFrontend | master | +76 -10 |
This is because you can't do CORs requests (cross domain requests) for anonymous users. CentralAuth only allows you to do that when logged in.
In our terms this means ForeignApi postWithToken will only work when you are logged in
You'll need to move this API to English Wikipedia...
Yes, CentralAuth is for logged in users only. Just use a normal logged out token (+\) and it should work.
Change 211884 had a related patch set uploaded (by Bmansurov):
ForeignApi: Allow posting for anonymous users
@bmansurov please reply to my comment on the patch. Please check the line is not redundant.