gs-securing-web
gs-securing-web copied to clipboard
this example doesn't work in localhost but work fine with localhost.com
desc:
- visit http://localhost:8080/login in chorme ,then sign in with 'user' and 'password'。
- 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。
- 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?
Same here, fixed by explicitly using 127.0.0.1:8080 or [::1]:8080
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.