tmp test for CORS

This commit is contained in:
Aliberk Sandıkçı 2023-11-22 19:36:18 +03:00
parent 303eab8f46
commit 82530f1ec2
Signed by: asandikci
GPG key ID: 25C67A03B5666BC1

View file

@ -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>