Blockstream / Blockstream/esplora

CORS error even with `CORS_ALLOW=*`

Open
#505 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.3k
Forks
514
Avg merge
1d 10h
Merged PRs (30d)
16

Description

I am running Esplora via `docker run --name esplora-container -p 50001:50001 -p 8094:80 --volume $PWD/data_bitcoin_regtest:/data -e CORS_ALLOW=* --rm -i -t blockstream/esplora bash -c "/srv/explorer/run.sh bitcoin-regtest explorer"` command but I am getting the error:

`Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:8094/regtest/api/address/bcrt1pw4egam6splawuqt6djwex5x7kxenwezwcu60plt28fenmqe8zn3q9t0evs/utxo. (Reason: CORS preflight response did not succeed). Status code: 404.`

Why is this happening since I am passing the `CORS_ALLOW=*` env var ?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.