Everytime I submit a zone, It display this error \'Uncaught Error: A cross-origin error was thrown. React doesn\'t have access to the actual error object in development\' It
for me, I just cleared site data and working fine
Check your token object. that's maybe undefined in local storage. you need to clear that and everything will be fine. clear your local storage or cookie where you store your token
Closing the application window in other browser instances could help with this error. Specifically the error is related to the browser behavior described here: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS.
Frequently I too get this error, to solve this error 1. Open Dev tools 2. Go to Application section 3. Clear the local storage by right clicking it.
Hope your error is resolved
I also got the same issue on sandbox while doing code with react-redux. Whenever you directly call this.props.anymethod()
it will revert you with this error. Try to handle it locally and then from within method hit the props method.
Something like this:
I solved cross-origin problem in this scenario
Clearing a token storage worked for me.