Page MenuHomeMiraheze

WikibaseClient Throws CORS Error
Open, NormalPublic

Description

This is the error that comes when the Add links button at the bottom of the sidebar is been clicked (On FP)

Error: [Exception... "" nsresult: "0x805e0006 ()" location: "JS frame :: https://en.famepedia.org/w/load.php?lang=en&modules=ext.DarkMode%2CdismissableSiteNotice%2CeventLogging%2Cpopups%2Cpurge%2Ctoctree%7Cext.centralNotice.choiceData%2CgeoIP%2CstartUp%7Cext.centralauth.ForeignApi%7Cext.centralauth.centralautologin.clearcookie%7Cext.discussionTools.init%7Cext.echo.api%2Cinit%7Cext.slideshow.main%7Cext.uls.common%2Ccompactlinks%2Cinterface%2Cpreferences%2Cwebfonts%7Cext.urlShortener.toolbar%7Cjquery%2Cmoment%2Coojs%2Coojs-router%2Coojs-ui-core%2Coojs-ui-windows%2Crangefix%2Csite%7Cjquery.chosen%2Cclient%2Ccookie%2CmakeCollapsible%2Cspinner%2CtextSelection%2Cui%7Cjquery.spinner.styles%7Cjquery.uls.data%7Cmediawiki.ForeignApi%2CString%2CTitle%2CUri%2Capi%2Cbase%2Ccldr%2Ccookie%2CjqueryMsg%2Clanguage%2Cnotification%2Cstorage%2Ctoc%2Cuser%2Cutil%2CvisibleTimeout%7Cmediawiki.ForeignApi.core%7Cmediawiki.action.view.postEdit%7Cmediawiki.editfont.styles%7Cmediawiki.libs.pluralruleparser%7Cmediawiki.page.ready%7Cmediawiki.page.watch.ajax%7Cmediawiki.ui.icon%7Cmmv.bootstrap%2Chead%7Cmmv.bootstrap.autostart%7Coojs-ui-core.icons%2Cstyles%7Coojs-ui-windows.icons%7Coojs-ui.styles.indicators%7Cskins.vector.legacy.js%7Cuser.defaults%7Cwikibase.client.linkitem.init&skin=vector&version=10ta9 :: .send :: line 454" data: no].

Please, I beg to help resolve this.

Event Timeline

Ugochimobi triaged this task as Normal priority.Aug 6 2021, 11:47
Ugochimobi created this task.

Did you replace any part of that message? Was there any random hash of characters replaced by ... after Exception? If so can you please get that so we can look up the error in logs, if not I'm unsure how to further debug this and an upstream support will probably be all we can do.

Did you replace any part of that message? Was there any random hash of characters replaced by ... after Exception? If so can you please get that so we can look up the error in logs, if not I'm unsure how to further debug this and an upstream support will probably be all we can do.

Following the reproduction steps, I get a CSP violation being the only error in the JS console log.

Did you replace any part of that message? Was there any random hash of characters replaced by ... after Exception? If so can you please get that so we can look up the error in logs, if not I'm unsure how to further debug this and an upstream support will probably be all we can do.

I'm not sure I missed anything, I copied the message exactly as I got it
One important or not important thing is that, On Google Chrome the full message doesn't show, it shows just Error but when I used the new Mozilla Firefox browser it now showed that, I think same applies to Opera browser.
I'll try to get the message again when I get on PC.

Redmin renamed this task from Possible Wikibase Error to WikibaseClient Throws CORS Error.EditedMon, Aug 30, 17:41
Redmin added a subscriber: Redmin.

I also got this error-
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at ‘https://snapdata.miraheze.org//w/api.php?action=query&format=json&origin=https%3A%2F%2Fsnapwiki.miraheze.org&meta=userinfo%7Ctokens’. (Reason: Credential is not supported if the CORS header ‘Access-Control-Allow-Origin’ is ‘*’).

I also got this error-
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at ‘https://snapdata.miraheze.org//w/api.php?action=query&format=json&origin=https%3A%2F%2Fsnapwiki.miraheze.org&meta=userinfo%7Ctokens’. (Reason: Credential is not supported if the CORS header ‘Access-Control-Allow-Origin’ is ‘*’).

Why rename the task though? It's two different errors it seems.