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

@ -26,7 +26,7 @@ if (!$_SERVER['DOCUMENT_ROOT']) {
<meta name="author" content="Aliberk Sandıı"> <meta name="author" content="Aliberk Sandıı">
<!-- CSS Files --> <!-- CSS Files -->
<link rel="stylesheet" type="text/css" href="/iflpanel/ssavpn/assets/css/main.css"> <!-- INNER CSS !!! --> <link rel="stylesheet" type="text/css" href="/iflpanel/ssavpn/assets/css/main.css"> <!-- INNER CSS !!! -->
<link rel="stylesheet" type="text/css" href="/assets/css/extra_without_scss.css"> <link rel="stylesheet" type="text/css" href="/assets/css/extra_without_scss.css">
<title> <title>
@ -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>