Vue-cli: Server SSL broken on vue ui

Created on 10 Sep 2019  路  6Comments  路  Source: vuejs/vue-cli

Version

vue 3.11.0

Environment info


Steps to reproduce

Install everything from scratch node.js (10.16.3 LTS), npm and @vue/cli.
Then run vue ui

What is expected?

vue ui starts correctly

What is actually happening?

Firefox shows this error:
An error occurred during a connection to localhost:8000. SSL received a record that exceeded the maximum permissible length. Error code: SSL_ERROR_RX_RECORD_TOO_LONG

Chrome shows this error:
ERR_SSL_PROTOCOL_ERROR


Do you have any idea why the SSL of the ui could be broken?

Most helpful comment

Yeah, that's it!
When adding http:// to the address bar in firefox the ui loads. But still I am not able to access http://localhost:8000 in chrome because chrome automatically switches to https://localhost:8000. Seems like a bug in chrome.

All 6 comments

Why are you accessing vue ui with https? I think we've only provided a normal http website.
http://localhost:8000 not https://localhost:8000

Yeah, that's it!
When adding http:// to the address bar in firefox the ui loads. But still I am not able to access http://localhost:8000 in chrome because chrome automatically switches to https://localhost:8000. Seems like a bug in chrome.

Hey @leolux ,
Did you solve the problem? If yes, how?
Thanks.

Hey @leolux ,
Did you solve the problem? If yes, how?
Thanks.

The issue has gone automatically after a view days. I guess that It has something todo with the Strict Content Policy which forces the browser to rewrite http requests to https.requests. As this enforcement does not last forever the issue got solved automatically.

From https://stackoverflow.com/questions/25277457/google-chrome-redirecting-localhost-to-https

Goto settings chrome://net-internals/#hsts
Type "localhost" into the "Delete domain security policies" section and delete

This removes the redirect to https

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sanderswang picture sanderswang  路  3Comments

Gonzalo2683 picture Gonzalo2683  路  3Comments

chasegiunta picture chasegiunta  路  3Comments

joshuajohnson814 picture joshuajohnson814  路  3Comments

NathanKleekamp picture NathanKleekamp  路  3Comments