MediaWiki:Common.js: Difference between revisions

no edit summary
mNo edit summary
No edit summary
Line 2:
if ( mw.config.get('wgPageName') === 'Current_worldguards' ) {
function fetch_worldguard_data() {
fetch("https://puucraft-dynmap-regionsworldjson-test.mixarium.repl.co/", {"method": "GET", "mode": 'cors', 'headers': {"content-security-policy": "connect-src 'self'"}) gosh, how do i get around CSP?
.then(function(response) {
if (response.ok) {