Merged in release/2022-06-10 (pull request #507)

release/2022-06-10

Approved-by: Patrick Fic
This commit is contained in:
Patrick Fic
2022-06-09 17:24:20 +00:00
2 changed files with 3 additions and 1 deletions

View File

@@ -48,6 +48,7 @@ export const socket = SocketIO(
: window.location.origin,
{
path: "/ws",
withCredentials: true,
auth: async (callback) => {
const token = auth.currentUser && (await auth.currentUser.getIdToken());
callback({ token });

View File

@@ -36,6 +36,7 @@ const io = new Server(server, {
"https://www.imex.online",
],
methods: ["GET", "POST"],
credentials: true,
},
});
exports.io = io;
@@ -48,7 +49,7 @@ app.use(bodyParser.json({ limit: "50mb" }));
app.use(bodyParser.urlencoded({ limit: "50mb", extended: true }));
//app.use(enforce.HTTPS({ trustProtoHeader: true }));
app.use(
cors()
cors({ credentials: true })
// cors({
// credentials: true,
// origin: [