Attempt #3 to fix CORS issue and docker build.

This commit is contained in:
Karmaa committed 2025-02-22 00:39:34 -06:00
1 parent 1addd43039
commit 5c5fe57dad
3 files changed
+8 -5

No files matched your search

+3 -2
View File
@@ -5,8 +5,9 @@ const SSHClient = require("ssh2").Client;
const server = http.createServer();
const io = socketIo(server, {
cors: {
origin: "*",
methods: ["GET", "POST"]
origin: "*", // Allow all origins
methods: ["*"], // Allow all methods
allowedHeaders: ["*"], // Allow all headers
}
});