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
Of course, I did like this, and "xhr poll error" happens on admin-ui.
const io = new Server(httpServer, {
cors: {
origin: "", // and I did ["https://admin.socket.io",""] instead of this
},
});
instrument(io, {
auth: false,
});
same issue here.
even with origin: "*" im getting GET http://localhost:8080/socket.io/?EIO=4&transport=polling&t=Oyga8kN net::ERR_FAILED 404 (Not Found)
Activity
darrachequesne commentedon Feb 17, 2022
It seems you are missing the
credentials: truepart:Reference: https://socket.io/docs/v4/admin-ui/#server-side
Could you please check?
GonnaWooh commentedon Feb 18, 2022
My mistake. The line "credentials: true" is not there, but I wrote it already.
darrachequesne commentedon Jun 23, 2022
@GeonwooDev have you eventually found a solution?
GonnaWooh commentedon Jul 7, 2022
MehdiMamas commentedon Sep 18, 2022
any updates on this?
darrachequesne commentedon Sep 19, 2022
@MehdiMamas unfortunatly I am not able to reproduce the issue.
From my understanding there are two possible explanations:
corsconfiguration is incorrect (which does not seem to be the case here)Could you please share what gets printed to the console?
Abolfazl-ghodrati-k commentedon Feb 4, 2023
did you find the answer
neobie commentedon May 11, 2023
Getting error as well.
docs: add some examples of CORS configuration
darrachequesne commentedon May 23, 2023
I have added a few examples in the documentation about the
corsoption: https://socket.io/docs/v4/server-options/#corsDoes that help?
TedKaczynskisCousin commentedon Apr 29, 2024
same issue here.
even with
origin: "*"im gettingGET http://localhost:8080/socket.io/?EIO=4&transport=polling&t=Oyga8kN net::ERR_FAILED 404 (Not Found)TedKaczynskisCousin commentedon Apr 29, 2024
I have also tried everything in this thread, to no avail.
szymonc commentedon May 17, 2024
Same issue