You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the example chat unchanged I receive a
"Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://file/socket.io/?EIO=3&transport=polling&t=My7DERo. (Reason: CORS request did not succeed)."
message. Looking around for enabling CORS I found a few tips like:
app.options('*', cors()) // include before other routes
app.use(cors({origin: 'http://localhost:3000', }));
but I do not see where and how I can enable it in this app.
It would be great if you would COR enable the example app since it would make the example work again and I could learn how to use the solution in my app based on your example.
Thank you in advance
g strubinsky
The text was updated successfully, but these errors were encountered:
Using the example chat unchanged I receive a
"Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://file/socket.io/?EIO=3&transport=polling&t=My7DERo. (Reason: CORS request did not succeed)."
message. Looking around for enabling CORS I found a few tips like:
app.options('*', cors()) // include before other routes
app.use(cors({origin: 'http://localhost:3000', }));
but I do not see where and how I can enable it in this app.
It would be great if you would COR enable the example app since it would make the example work again and I could learn how to use the solution in my app based on your example.
Thank you in advance
g strubinsky
The text was updated successfully, but these errors were encountered: