Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Testnet is not accepting CORS browser requests #6

Closed
jcalfee opened this issue Dec 9, 2017 · 7 comments
Closed

Testnet is not accepting CORS browser requests #6

jcalfee opened this issue Dec 9, 2017 · 7 comments

Comments

@jcalfee
Copy link
Contributor

jcalfee commented Dec 9, 2017

The latest Eos.Testnet() points to a http://testnet1.eos.io which is not accepting CORS requests yet. So it works in node but not in the browser.

In the mean time: http://t1readonly.eos.io is setup with CORS. I'm told it will however silently fail if a large smart contract (setcode) is attempted.

@jcalfee
Copy link
Contributor Author

jcalfee commented Dec 11, 2017

fyi: the challenge is in the load balancer

@jcalfee
Copy link
Contributor Author

jcalfee commented Dec 12, 2017

possibly related: EOSIO/eos#376

@jcalfee
Copy link
Contributor Author

jcalfee commented Jan 4, 2018

Work-around:

Eos.Testnet({httpEndpoint: 'http://t1readonly.eos.io'})

jcalfee pushed a commit to EOSIO/eosjs-api that referenced this issue Mar 12, 2018
@jcalfee
Copy link
Contributor Author

jcalfee commented Mar 12, 2018

changed default to: http://t1readonly.eos.io

@jcalfee jcalfee closed this as completed Mar 12, 2018
@cAstraea
Copy link

cAstraea commented Mar 28, 2018

is there a https endpoint ?
eos.js:23020 Mixed Content: The page at 'https://*****l' was loaded over HTTPS, but requested an insecure resource 'http://t1readonly.eos.io/v1/chain/get_table_rows'. This request has been blocked; the content must be served over HTTPS.

@jcalfee
Copy link
Contributor Author

jcalfee commented Mar 28, 2018

I'm asking to see if we can get https setup..

@jcalfee
Copy link
Contributor Author

jcalfee commented Mar 28, 2018

Ok, https is enabled now, please try: https://t1readonly.eos.io/

metamaster2021 pushed a commit to armoniax/eosjs that referenced this issue May 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants