alicenet / utilities

Utilities for the AliceNet project
MIT License
1 stars 0 forks source link

Support CORS #38

Closed ghost closed 1 year ago

ghost commented 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.