<script>
const URL = "https://discord.com/api/guilds/899175503565553714";
$.ajax({
url: URL,
type: "GET",
headers: { Authorization: 'Bot ' + token } })
</script>
Here is my code
index.html:1 Access to XMLHttpRequest at 'https://discord.com/api/guilds/899175503565553714' from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
How can I send headers and receive values ​​successfully with jquery ?