We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [cors]

Use this tag when you see a message in the browser devtools console about CORS (Cross-Origin Resource Sharing) — e.g., your browser logged an error about Access-Control-Allow-Origin, and you want to know how to eliminate the error. Also for other questions on the CORS protocol (defined in https://fetch.spec.whatwg.org/ as a way to use response headers to tell browsers to relax the same-origin policy and allow cross-origin XHR/Fetch/Ajax requests).

Filter by
Sorted by
Tagged with
2
votes
1answer
104 views

Couldn't connect to node because cross-origin request is blocked

I am running a full rinkeby node via geth --rinkeby --rpc --rpcapi db,eth,net,web3,personal --cache=2048 --unlock="..." --password ... --rpccorsdomain "*" --allow-insecure-unlock --rpcaddr "...
0
votes
0answers
188 views

CORS policy error while connect to test-rpc

I'm trying to build my first dapp using test-rpc and web3js. I deployed a smart contract (with remix ide) to the testrpc (on linux ubuntu), when executing the following line: web3 = new Web3(new Web3....
1
vote
3answers
751 views

WEB3JS CORS ERROR

I have a empty html file that call to a js file. Inside that file I have this coded. if (typeof web3 !== 'undefined') { web3 = new Web3(web3.currentProvider); } else { // set the provider you ...
2
votes
2answers
2k views

Unable to execute web3.eth.accounts[0]

I'm following along with this short tutorial and ran into a few problems. I'm running testrpc in my console. However, every time I run my index.html I get an error. My index.html file is the following:...
2
votes
0answers
147 views

Can not access quorum's contract from webpage *CORS*

I am getting following error on browser's console while accessing contracts. Failed to load http://localhost:22000/: Response to preflight request doesn't pass access control check: No 'Access-...
1
vote
1answer
920 views

Can no more connect to my local node using web3

I start my local node using the following command: geth --datadir "D:\EthereumLocalNode" --networkid 1114 console 2>> "D:\EthereumLocalNode\myLog.log" --rpc --rpccorsdomain "*" --nodiscover --...
16
votes
1answer
16k views

What is http://localhost:8545?

Why do some ethereum related websites (for example regis.nu, there are many others) tell me they cannot find a node running at http://localhost:8545 and what can I do about that? Regis.nu allowed me ...
3
votes
1answer
2k views

Browser will not connect to running Geth: NS_ERROR_UNKNOWN_PROTOCOL

My Geth tutorial Greeter contract runs fine from the command line. I tried to make a front end that just outputs the string from Greeter, but the browser console returns the error, '...
1
vote
1answer
212 views

How to offer free DApps for users without any barriers? [duplicate]

How to offer decentralized applications or services for users without introducing any barriers like running a full ethereum node? enabling rpc api on the node? explaining the user which rpc cors ...
4
votes
1answer
255 views

Is it possible to check which RPC APIs are available?

Is it possible for a decentralized application to get details about the offered JSON-RPC APIs from the local ethereum node? I want to check the following specs in the following order using web3.js: ...