Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not working #125

Open
parnaz-pirhadi opened this issue Oct 11, 2023 · 2 comments
Open

not working #125

parnaz-pirhadi opened this issue Oct 11, 2023 · 2 comments

Comments

@parnaz-pirhadi
Copy link

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

@venkateshatgit
Copy link

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)
image

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

@Lagnajit09
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants