{"action":"created","issue":{"url":"https://api.github.com/repos/paritytech/parity/issues/8603","repository_url":"https://api.github.com/repos/paritytech/parity","labels_url":"https://api.github.com/repos/paritytech/parity/issues/8603/labels{/name}","comments_url":"https://api.github.com/repos/paritytech/parity/issues/8603/comments","events_url":"https://api.github.com/repos/paritytech/parity/issues/8603/events","html_url":"https://github.com/paritytech/parity/issues/8603","id":322241945,"number":8603,"title":"How to disable token check for websocket connections","user":{"login":"Levino","id":1150767,"avatar_url":"https://avatars1.githubusercontent.com/u/1150767?v=4","gravatar_id":"","url":"https://api.github.com/users/Levino","html_url":"https://github.com/Levino","followers_url":"https://api.github.com/users/Levino/followers","following_url":"https://api.github.com/users/Levino/following{/other_user}","gists_url":"https://api.github.com/users/Levino/gists{/gist_id}","starred_url":"https://api.github.com/users/Levino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Levino/subscriptions","organizations_url":"https://api.github.com/users/Levino/orgs","repos_url":"https://api.github.com/users/Levino/repos","events_url":"https://api.github.com/users/Levino/events{/privacy}","received_events_url":"https://api.github.com/users/Levino/received_events","type":"User","site_admin":false},"labels":[{"id":444761385,"url":"https://api.github.com/repos/paritytech/parity/labels/M6-rpcapi","name":"M6-rpcapi","color":"EEF9F9","default":false},{"id":290482954,"url":"https://api.github.com/repos/paritytech/parity/labels/Z1-question","name":"Z1-question","color":"fff5fb","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/paritytech/parity/milestones/21","html_url":"https://github.com/paritytech/parity/milestone/21","labels_url":"https://api.github.com/repos/paritytech/parity/milestones/21/labels","id":3057411,"number":21,"title":"1.12","description":"","creator":{"login":"5chdn","id":15729797,"avatar_url":"https://avatars3.githubusercontent.com/u/15729797?v=4","gravatar_id":"","url":"https://api.github.com/users/5chdn","html_url":"https://github.com/5chdn","followers_url":"https://api.github.com/users/5chdn/followers","following_url":"https://api.github.com/users/5chdn/following{/other_user}","gists_url":"https://api.github.com/users/5chdn/gists{/gist_id}","starred_url":"https://api.github.com/users/5chdn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/5chdn/subscriptions","organizations_url":"https://api.github.com/users/5chdn/orgs","repos_url":"https://api.github.com/users/5chdn/repos","events_url":"https://api.github.com/users/5chdn/events{/privacy}","received_events_url":"https://api.github.com/users/5chdn/received_events","type":"User","site_admin":false},"open_issues":152,"closed_issues":121,"state":"open","created_at":"2018-01-23T13:30:50Z","updated_at":"2018-05-15T06:54:58Z","due_on":"2018-06-25T07:00:00Z","closed_at":null},"comments":11,"created_at":"2018-05-11T10:07:58Z","updated_at":"2018-05-15T10:55:50Z","closed_at":null,"author_association":"NONE","body":"> I'm running:\r\nDocker:\r\n```yaml\r\nethereum:\r\n  image: parity/parity:v1.11.0\r\n  ports:\r\n    - 30303:30303\r\n  command: > \r\n             --ui-interface all\r\n             --ws-interface all\r\n             --base-path /root/parity\r\n             --no-ancient-blocks\r\n             --no-serve-light\r\n             --max-peers 250\r\n             --snapshot-peers 50\r\n             --min-peers 50\r\n             --mode active\r\n             --tracing off\r\n             --pruning fast\r\n             --db-compaction ssd\r\n             --cache-size 4096\r\n             --ws-origins http://localhost:3000\r\n             --ws-hosts https://redacted.com\r\n             --ws-apis web3\r\n```\r\n> - **Are you fully synchronized?**: no\r\n> - **Which network are you connected to?**: ethereum (see above)\r\n> - **Did you try to restart the node?**: yes\r\n\r\nI try to access a deployed parity node via the web3.js library. In order to do that, I have to open a websocket connection from my React app, running on `http://localhost:3000`. As you can see above, I am setting appropriate `ws-host` and `ws-origins` values. But still parity will not allow a connection because (from the logs):\r\n\r\n```bash\r\n2018-05-11 10:05:48 UTC Blocked connection from http://localhost:3000 using invalid token.\r\n```\r\nI do not want to store any information on the server / in the parity node. I just want to use it to get chain state, build transactions and sign them. Can I switch off the \"token check\"? I did not find anything in the docs and if you search for `token` you get hammered with results for \"ERC20 Tokens\", obviously.\r\n\r\nAny help would be much appreciated."},"comment":{"url":"https://api.github.com/repos/paritytech/parity/issues/comments/389126334","html_url":"https://github.com/paritytech/parity/issues/8603#issuecomment-389126334","issue_url":"https://api.github.com/repos/paritytech/parity/issues/8603","id":389126334,"user":{"login":"Tbaut","id":33178835,"avatar_url":"https://avatars2.githubusercontent.com/u/33178835?v=4","gravatar_id":"","url":"https://api.github.com/users/Tbaut","html_url":"https://github.com/Tbaut","followers_url":"https://api.github.com/users/Tbaut/followers","following_url":"https://api.github.com/users/Tbaut/following{/other_user}","gists_url":"https://api.github.com/users/Tbaut/gists{/gist_id}","starred_url":"https://api.github.com/users/Tbaut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tbaut/subscriptions","organizations_url":"https://api.github.com/users/Tbaut/orgs","repos_url":"https://api.github.com/users/Tbaut/repos","events_url":"https://api.github.com/users/Tbaut/events{/privacy}","received_events_url":"https://api.github.com/users/Tbaut/received_events","type":"User","site_admin":false},"created_at":"2018-05-15T10:55:50Z","updated_at":"2018-05-15T10:55:50Z","author_association":"COLLABORATOR","body":"It's a bug in the latest web3@1.0.0-beta34 reported https://github.com/ethereum/web3.js/issues/1559, using the beta33 works as expected.\r\nThanks a lot @amaurymartiny for the precious help.\r\n\r\nTo reproduce with a working web3@1.0.0-beta33:\r\n`git clone https://github.com/amaurymartiny/simple-web3`\r\n`cd ./simple-web3`\r\n`yarn install`\r\n`yarn start`\r\nVisit http://localhost:8080/"}}
{"actor":{"display_login":"Tbaut"}}