Page MenuHomeMiraheze

Problem with extensions activation
Closed, DuplicatePublic

Description

I can't use most of the extensions available con the list due to a lot of errors... In console there are a lot of error similar to this:

Refused to load the script 'https://m.addthis.com/live/red_lojson/300lo.json?si=619cfe559dfab579&bkl=0&bl=1&pdt=479&sid=619cfe559dfab579&pub=&rev=v8.28.8-wp&ln=it&pc=men&cb=0&ab=-&dp=ikhi.miraheze.org&fp=wiki%2FPagina_principale&fr=wiki%2FSpeciale%3AManageWiki%2Fextensions&of=0&pd=0&irt=1&vcl=3&md=0&ct=1&tct=0&abt=0&cdn=0&pi=1&rb=2&gen=100&chr=UTF-8&colc=1637678677809&jsl=1&uvs=619cf6d557b3ad4d02b&skipb=1&callback=addthis.cbs.jsonp__69163052801838960' because it violates the following Content Security Policy directive: "script-src blob: 'self' 'unsafe-inline' 'unsafe-eval' *.miraheze.org *.wikimedia.org *.wikipedia.org *.wikibooks.org *.wiktionary.org *.wikiquote.org *.wikisource.org *.wikiversity.org *.wikinews.org *.wikivoyage.org mediawiki.org wikidata.org www.gstatic.com s7.addthis.com www.google.com www.recaptcha.net platform.twitter.com js-wiki-cdn.reviservices.com wikiplus-app.com cdnjs.cloudflare.com cdn.jsdelivr.net cdn.syndication.twimg.com scratchblocks.github.io openlayers.org". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.

I thought that to activate an extension it was enough ... to activate it ... but apparently everything is always much more complex (and also a bit frustrating)
Thanks in advance!

(my wiki url: https://ikhi.miraheze.org/)

Event Timeline

Adri_Ikharai triaged this task as Normal priority.Nov 23 2021, 14:55
Adri_Ikharai created this task.

Are you facing issues when activating extensions via ManageWiki or is it specifically with the AddThis extension or are you trying to load a script...?

I'm using nothing more than the default interface for the management of the extensions. https://ikhi.miraheze.org/wiki/Speciale:ManageWiki/extensions
I also paid attention to possible conflicts between extensions, but nothing seems to be wrong.

Ehm... looking better at the console the problem seems to be exactly AddThis, all errors are related to that.

Unknown Object (User) removed Adri_Ikharai as the assignee of this task.Nov 23 2021, 20:47
Unknown Object (User) added projects: MediaWiki (SRE), CSP Review.
Unknown Object (User) closed this task as a duplicate of T7876: Remove AddThis and replace with Agent Isai's extension.
Unknown Object (User) moved this task from Backlog to Short Term on the MediaWiki (SRE) board.