Connect to website with API doesn't work when game is online

I have a simple Javascript code that reads and writes on a blog. I use the blog API.
It works perfectly on the editor. But it doesn’t work when online (on itch).
What should I do?

Try to use the AdvancedHTTP extension with the CORS Bypass option enabled instead of javascript

1 Like

yes the console says it’s the CORS thing. So I should bypass that.
So you’re saying it can be done with that extension. Does it mean I can’t use the javascript codes I wrote? I have to do it with Gdvelop events?
After looking at that extension I have absolutely no idea how to use it. A simple example where I can see how to do simple requests would be very useful.

I kind of figured out how to use it a bit but setting the body of a post request is not working. And I am not the only one to have this problem on the forum. It seems to expect a different body form. Having more explanations here would be good