Using Websocket in Reactjs throws error of CORS

pankajkherwal
Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:3000' is therefore not allowed access. The response had HTTP status code 405. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

Cross-Origin Read Blocking (CORB) blocked cross-origin response https://ws.kite.trade/?api_key=XXX&access_token=XXX&uid=1528524250958 with MIME type text/plain. See https://www.chromestatus.com/feature/5629709824032768 for more details.
Sign In or Register to comment.