Is XMLHttpRequest allowed on glitch?

I am using XMLHttpRequest’s in my webpage and I was wondering if this was actually possible due to the fact that my webpage works on a local host but using glitch, it throws a error.

Access to XMLHttpRequest at ‘discord webhook here’ from origin ‘’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.

Yes, they are allowed but they can be tricky to use. You can always use “cors-anywhere” to fix this. Add in front of your URLs.

I am a little confused on that, can we talk on discord?
If you have discord, friend me AGR#0002
If not just let me know

To help others, we should talk here. What do you need help with?

I do not understand how the site works

Its more or less a proxy to fix issues with CORS.

Okay, at what part would I add implantations to my code? request.setRequestHeader? request.send?

where would i add this proxy?

Add it in front of the original url.

If my original url is, where would i put the proxy?

Is it a static project or a node server? If it’s a node/express server you can directly disable the CORS policy. Otherwise, you will have to use some sort of proxy like what @RiversideRocks suggested when making the request. Best to give it a Google.

It’s like this:

So, with your url, you’ll just put it like this:

Then, you just use XMLHttpRequest / fetch normally!

Here is sample code. This should work

var proxyUrl = ""
var link = ""
fetch(proxyUrl + link)

You can also read more about in the link itself: