Closed ghost closed 1 year ago
Describe the bug
Hitting the indexer from a web context will fail as we're not following CORS pre-flight.
To Reproduce
Attempt to hit the indexer from chrome console:
const result = await fetch("https://index-frontend-sg4efdgo3q-uc.a.run.app/v1/blocks/2")
Expected behavior
Result returned successfully.
Describe the bug
Hitting the indexer from a web context will fail as we're not following CORS pre-flight.
To Reproduce
Attempt to hit the indexer from chrome console:
Expected behavior
Result returned successfully.