gs-securing-web icon indicating copy to clipboard operation
gs-securing-web copied to clipboard

this example doesn't work in localhost but work fine with localhost.com

Open edfeff opened this issue 5 years ago • 1 comments

desc:

  1. visit http://localhost:8080/login in chorme ,then sign in with 'user' and 'password'。
  2. this chrome is not redirect to http://localhost:8080/hello ,it still in http://localhost:8080/login ,and the input is empty ,just like refresh this page。
  3. when i input http://localhost.com:8080/login ,this example worked。

my /etc/hosts file:

127.0.0.1 localhost 127.0.0.1 localhost.com

so, what's the problem about localhost and localhost.com,can you help me?

edfeff avatar Nov 18 '19 09:11 edfeff

Same here, fixed by explicitly using 127.0.0.1:8080 or [::1]:8080

olegkamuz avatar May 05 '20 12:05 olegkamuz

It works for me. I suspect you have a hosts file problem or something similar. Ask on Stack Overflow, which gets much more traffic than this issue.

Buzzardo avatar Oct 16 '23 18:10 Buzzardo