|
@ -16,7 +16,9 @@ import { |
|
|
const app = express(); |
|
|
const app = express(); |
|
|
|
|
|
|
|
|
// Set up CORS middleware for Express
|
|
|
// Set up CORS middleware for Express
|
|
|
app.use(cors()); |
|
|
|
|
|
|
|
|
app.use(cors({ |
|
|
|
|
|
origin: "*", |
|
|
|
|
|
})); |
|
|
|
|
|
|
|
|
// Create an HTTP server
|
|
|
// Create an HTTP server
|
|
|
const httpServer: HTTPServer = createServer(app); |
|
|
const httpServer: HTTPServer = createServer(app); |
|
|