Hello,
I have a problem after installing latest version of Moralis (version 1.11.0).
When calling functions like fetchERC20Balances from useERC20Balances, I get Cors errors (access to XMLHttpRequest from origin localhost has been blocked by CORS policy…):
I tried to reinstall Moralis version 1.10.1 and it works. So the problem is due to 1.11.0
I’m using nextJs latest version. I’ve read about webpack5 problems, but nextjs 12 doesn’t allow to use webpack4. I wasn’t able to fix the problem as suggested on the site.
I’m telling this because maybe the problem is related to it. But everything was good before version 1.11.0
How can I solve the problem? I would be glad if someone who solved webpack5 issue can show what to put in next.config.js
Also, I really want to use last Moralis version, but need to solve Cors problems.
Thank you!