Uncaught Error: A cross-origin error was thrown. React doesn't have access to the actual error object in development

前端 未结 14 1151
一整个雨季
一整个雨季 2020-12-20 11:08

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

相关标签:
14条回答
  • 2020-12-20 11:40

    for me, I just cleared site data and working fine

    0 讨论(0)
  • 2020-12-20 11:48

    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

    0 讨论(0)
  • 2020-12-20 11:49

    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.

    0 讨论(0)
  • 2020-12-20 11:50

    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

    0 讨论(0)
  • 2020-12-20 11:50

    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

    0 讨论(0)
  • 2020-12-20 11:53

    Clearing a token storage worked for me.

    0 讨论(0)
提交回复
热议问题