Hey, I think I found the solution for this. I think this happens because of cors config in the middlewares.js file. If you are using some sort of cors then remove it and make it look like this ( strapi::cors ) or simply change origin to origin:"*" - this will allow all URLs.
middlewares.js file
