Help blocked by CORS policy: Cross origin requests not supported

The thing is the code is working completely fine, it works perfectly in unity, but when I build to webGL its just a black screen.