Fix cookies on ACP for SIO4 upgrade

This commit is contained in:
Calvin Montgomery 2021-11-06 19:53:16 -07:00
parent ab8faf7c99
commit 0d9f4a5f03

View file

@ -2,7 +2,8 @@
var chosenServer = IO_SERVERS[0]; // Is the array even necessary for the ACP?
var opts = {
secure: chosenServer.secure
secure: chosenServer.secure,
withCredentials: true // needed for sio cookie to work
};
window.socket = io.connect(chosenServer.url, opts);