Alethio/ethereum-lite-explorer

Cors origin & Error: Latest block should be set by now

saravana87 opened this issue · 0 comments

After reading the manual. I build the repo from source (https://github.com/Alethio/ethereum-lite-explorer#building-from-source)

I managed to build and run the application without the error.

I used npm run build-dev to check the app in the 3000 port.

Errors

  1. Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://127.0.0.1:8545/. (Reason: CORS request did not succeed).
  2. Error: Latest block should be set by now

I added cors code in the dev/index.ts also. I added cors params in Geth and parity server.

Can someone help me to figure out the issue.
eth