CORS error fix

This commit is contained in:
2025-09-27 12:23:32 -04:00
parent 9e211b6b61
commit e1e04a4835
4 changed files with 51 additions and 64 deletions

View File

@@ -46,9 +46,15 @@ app.get('/api/link-status', async (req, res) => {
}
});
// Serve static files
app.use(express.static(path.join(__dirname, 'public')));
// ... previous middleware ...
// Serve static files from /public, including dotfolders such as .well-known
app.use(
express.static(path.join(__dirname, 'public'), { dotfiles: 'allow' })
);
// Start the server
app.listen(PORT, () => {
console.log(`🚀 Server running at http://0.0.0.0:${PORT}`);
});