Merge pull request #1230 from BlockHand/docker-ide

This commit is contained in:
pomelo
2025-12-12 16:16:23 +08:00
committed by GitHub

View File

@@ -164,6 +164,7 @@ export class IDEServer {
const allowedHosts = [ const allowedHosts = [
`localhost:${this.port}`, `localhost:${this.port}`,
`127.0.0.1:${this.port}`, `127.0.0.1:${this.port}`,
`host.docker.internal:${this.port}`, // Add Docker support
]; ];
if (!allowedHosts.includes(host)) { if (!allowedHosts.includes(host)) {
return res.status(403).json({ error: 'Invalid Host header' }); return res.status(403).json({ error: 'Invalid Host header' });