tmp test for CORS
This commit is contained in:
parent
303eab8f46
commit
82530f1ec2
1 changed files with 15 additions and 4 deletions
|
@ -61,7 +61,18 @@ if (!$_SERVER['DOCUMENT_ROOT']) {
|
||||||
echo '<script src="/assets/js/' . $file . '"></script>' . PHP_EOL . ' ';
|
echo '<script src="/assets/js/' . $file . '"></script>' . PHP_EOL . ' ';
|
||||||
}
|
}
|
||||||
} ?>
|
} ?>
|
||||||
<script src="../assets/copy.js"></script>
|
|
||||||
|
<script>
|
||||||
|
let url = 'https://git.aliberksandikci.com.tr/asandikci.com/www/raw/branch/main/donations.json';
|
||||||
|
|
||||||
|
fetch(url)
|
||||||
|
.then(res => res.json())
|
||||||
|
.then(out =>
|
||||||
|
console.log('Checkout this JSON! ', out))
|
||||||
|
.catch(err => {
|
||||||
|
throw err
|
||||||
|
});
|
||||||
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
Loading…
Reference in a new issue