diff options
Diffstat (limited to 'backend/index.ts')
| -rw-r--r-- | backend/index.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/backend/index.ts b/backend/index.ts index 5a974d6..9efec62 100644 --- a/backend/index.ts +++ b/backend/index.ts @@ -8,15 +8,15 @@ import { sql, } from "slonik"; import * as config from "./config"; -import { ValueRecord } from "../shared-types"; -import { Server as SocketIOServer, Socket } from "socket.io"; +import { ValueRecord } from "./shared-types"; +import { Server as SocketIOServer } from "socket.io"; const app = express(); const httpServer = http.createServer(app); const io = new SocketIOServer(httpServer, { cors: { - origin: "*", + origin: config.frontendUrl, }, }); |
