Closed Dav0n closed 4 years ago
info, i'm starting project with: npm run serve -- --host x.x.x.x --port 9999 firefox keeps reporting: http://localhost:9999/sockjs-node/info?t=1561650441849 <- CORS failed request because i'm not using localhost
@Dav0n The line you mentioned is in webpack-dev-server
, not sockjs-node. Is the problem there?
Closing due to inactivity
Sorry didn’t noticed the activity till now, I have seen webpack has a dependency on sockjs, but when passing —host option the parameter does not get to the right place during runtime, maybe it a initialization problem. Greetings
in file "node_modules\webpack-dev-server\client\index.js" line 226: var hostname = urlParts.hostname; <- first evaluate to localhost then to the correct browser url, but keeps failing later with localhost
var protocol = urlParts.protocol; var port = urlParts.port; // check ipv4 and ipv6
all hostname