Closed marcoippolito closed 3 years ago
Does the same output is generated if you use non-secure protocol (http) ?
@PS-Ddevil I didn't directly create a SockJS object myself. I just created a tiny test app with vue cli, so without adding anything, apart from what the empty vue-cli scaffolding brings.
(base) marco@pc:~/vueMatters/testproject$ npm run serve
testproject@0.1.0 serve /home/marco/vueMatters/testproject
vue-cli-service serve
INFO Starting development server... 98% after emitting CopyPlugin
DONE Compiled successfully in 1409ms 8:14:46 PM . I update my question above with more info
@marcoippolito see if this helps in your case. https://github.com/webpack/webpack-dev-server/issues/416
I just created a tiny test app with vue cli, so without adding anything, apart from what the empty vue-cli scaffolding brings.
(base) marco@pc:~/vueMatters/testproject$ npm run serve
INFO Starting development server... 98% after emitting CopyPlugin
DONE Compiled successfully in 1409ms 8:14:46 PM
With this /etc/nginx/conf.d/default.conf :
with vue.config.js :
and with this webpack.config.js :
Get this error message:
Ubuntu 18.04.03 Server Edition
(base) marco@pc:~$ node -v v12.10.0
npm -v 6.13.6
webpack-cli@3.3.10
vue --version @vue/cli 4.1.2
(base) marco@pc:~$ nginx -v nginx version: nginx/1.14.0 (Ubuntu)
From within ghe PC-Server: (base) marco@pc:~$ curl -Iki https://localhost/sockjs-node/info?t=1580397983088 HTTP/2 405 server: nginx/1.14.0 (Ubuntu) date: Fri, 31 Jan 2020 08:19:02 GMT allow: OPTIONS, GET
(base) marco@pc:~/vueMatters/testproject$ curl -vk https://localhost/sockjs- node/info?t=1580397983088
From a laptop:
(base) marco@marco-U36SG:~$ curl -Iki https://ggc.world/sockjs-node/info?t=1580397983088 HTTP/1.1 405 Method Not Allowed Server: nginx/1.14.0 (Ubuntu) Date: Fri, 31 Jan 2020 09:34:59 GMT Connection: keep-alive Allow: OPTIONS, GET
(base) marco@marco-U36SG:~$ curl -vk https://ggc.world/sockjs-node/info?t=1580397983088
Network Tab in the browser: