Somesa's avatar

browserSync ERR_SSL_PROTOCOL_ERROR [solved]

Hello, i want to make browserSync running but i have an error on my http://localhost:3000 page : ERR_SSL_PROTOCOL_ERROR

I run php artisan serve --host=localhost -> run fine on https://localhost:8000/

and in my webpack.mix.js:

mix.browserSync('localhost:8000');

do you have an idea ? Thanks

0 likes
2 replies
bobbybouwmann's avatar

You're opening domain.com, while you need to open localhost:8000 in your browser

Somesa's avatar
Somesa
OP
Best Answer
Level 1

Sorry for confusion, the image is just to show an example of the error, its not my screenshot i will delete it to prevent confusion, my browser open in http://localhost:3000 (i think it redirect to https i dont know why...)

---- EDIT ---

I solved my problem with opening my server with MAMP, then i add the website url to browserSync():

mix.browserSync('http://localhost:8888/Web/Laravel/test_68/public/');

it works fine

Please or to participate in this conversation.