You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.
Hi,
Starting using tzindex, looklike to be a great explorer api for tezos, however I found that the CORS policy is not set as intended:
Not working as excepted:
Excepted to be set to Access-Control-Allow-Origin: * when using arg --enable-cors
Excepted to be set to Access-Control-Allow-Origin: * when using docker env variable 'TZ_SERVER_CORS_ORIGIN=*' to set it to Access-Control-Allow-Origin: *
I got it set to Access-Control-Allow-Origin: for both case
Working as excepted:
However the docker env var with something else that * like TZ_SERVER_CORS_ORIGIN=http://example.com works !
i'm using the docker image on docker hub tag:v6.0.3
Example to reproduce, http://172.17.0.1:8732 is a valid tezos node,
Then have a look to the http header: curl -v http://localhost:8000 serach Access-Control-Allow-Origin header
The text was updated successfully, but these errors were encountered:
thomsh
changed the title
Access-Control-Allow-Origin: "null" by default not "*", Env var not working v6.0.3
[v6.0.3] Access-Control-Allow-Origin: "null" by default not "*", can't switch to "*"
Jun 3, 2020
thomsh
changed the title
[v6.0.3] Access-Control-Allow-Origin: "null" by default not "*", can't switch to "*"
[v6.0.3] Access-Control-Allow-Origin: "null", can't switch to "*"
Jun 3, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
Starting using tzindex, looklike to be a great explorer api for tezos, however I found that the CORS policy is not set as intended:
Not working as excepted:
Access-Control-Allow-Origin: *
when using arg--enable-cors
Access-Control-Allow-Origin: *
when using docker env variable'TZ_SERVER_CORS_ORIGIN=*'
to set it toAccess-Control-Allow-Origin: *
I got it set to
Access-Control-Allow-Origin:
for both caseWorking as excepted:
However the docker env var with something else that
*
likeTZ_SERVER_CORS_ORIGIN=http://example.com
works !i'm using the docker image on docker hub tag:v6.0.3
Example to reproduce, http://172.17.0.1:8732 is a valid tezos node,
docker run -it --rm \ -v /data/tzindex:/data:rw -p 0.0.0.0:8000:8000 \ -e 'TZ_SERVER_CORS_ORIGIN=*' \ blockwatch/tzindex:v6.0.3 \ tzindex run --enable-cors --dbpath /data --rpcurl http://172.17.0.1:8732
Then have a look to the http header:
curl -v http://localhost:8000
serachAccess-Control-Allow-Origin
headerThe text was updated successfully, but these errors were encountered: