project_chat_application
project_chat_application copied to clipboard
not working
i have a lot of error : Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://project-chat-application.herokuapp.com/socket.io/?EIO=3&transport=polling&t=OiTBTSl. (Reason: CORS request did not succeed). Status code: (null)
and when i want to chat , nothing happend
Hi @parnaz-pirhadi I also faced same issue.
Actually in this code there are two phase that is : client & server.
You have to npm start both the folder and change the Endpoint (as shown in image, in Chatjs component)
The issue is because the "https://project-chat-application.herokuapp.com/" host might be inactive, that's why it is not accepting response.
for me changing the Endpoint worked, and I came across new bugs!!
Happy coding
socket.io has changed its documentation. You can refer to this page https://socket.io/docs/v3/handling-cors/
Or check my repo https://github.com/Lagnajit09/realtime-chat-app.... I have used the latest version and it works perfecttly