Wikipedia talk:User scripts/Guide: Difference between revisions
Content deleted Content added
replying to Diegodlh (Bawl!) |
|||
Line 86:
::Thanks, @[[User:NguoiDungKhongDinhDanh|NguoiDungKhongDinhDanh]]. I tried using the user script (which makes a request to toolforge.org) in Test Wikipedia and I'm getting a different error (although the request does succeed, as you say): `Content Security Policy: The page’s settings observed the loading of a resource at <nowiki>https://web2cit.toolforge.org/</nowiki> (“default-src”). A CSP report is being sent.`. The warning does not appear if the user script sends a request to en.wikipedia.org, for example.
::I wonder whether CSP will be enforced in the future (I hope *.toolforge.org is allowed as well). This may not be what the Ajax section of the User scripts guide is referring to, though: "AJAX scripts cannot reach a page on a different server (for example, google.ca or en.wikisource.org from en.wikipedia.org". I wonder whether it's safe to remove this from the docs. [[User:Diegodlh|Diegodlh]] ([[User talk:Diegodlh|talk]]) 18:43, 12 April 2022 (UTC)
:::{{ping|Diegodlh}} Unfortunately, toolforge may not be allowed according to {{phab|T304107#7787150}} and {{phab|T304151}}. For the time being, I think you can [[WP:BOLD|be bold]] and remove that sentence. [[User:NguoiDungKhongDinhDanh|<span style="font-family:Monotype Corsiva;background-image:linear-gradient(90deg,red,yellow,cyan);color:transparent;background-clip:text;-webkit-background-clip:text">'''NguoiDungKhongDinhDanh'''</span>]] 07:14, 13 April 2022 (UTC)
|