Why I cannot visit my tomee app by using 'localhost' after implement single sign on by using waffle?

Dec 4, 2015 at 7:24 AM
Hi,
I am trying to implement the single sign on by using waffle on windows for my tomee app.
Below is the configuration of the web.xml.
<security-role>
<role-name>BUILTIN\Users</role-name>
</security-role>
<filter>
<filter-name>SecurityFilter</filter-name>
<filter-class>waffle.servlet.NegotiateSecurityFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>SecurityFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>

It works well(getRemoteUser returns correct value) but I cannot login the app when I visit the web page by using localhost on the machine that tomee running. I just can visit the web page by using the server’s IP.
Did I missed any configuration?

Thanks in advance for your help.