I am using Moralis to keep track of my user’s info on login. For some reason, seemingly at random, I keep getting the following error:
Access to XMLHttpRequest at 'https://8apxvoan6phd.usemoralis.com:2053/server/functions/getPluginSpecs' from origin 'http://localhost:3000' 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.
I have no idea what is causing it because it runs completely normal until a certain point and then just starts giving me that error. Then I check the moralis website and my server’s stats wont load, so my only option is to delete the server and make a new one, which fixes the issue. My question is what kind of things could be causing this? Is it normal? How do I prevent it?