Hi Pyiush,
> I added this line
>
> host.getAllowedNames().add("localhost");
>
>
> and now my url
>
> localhost:8182/something works
>
> but
>
> 127.0.0.1:8182/something doesn't work
[...]
> Could you answer: why didn't the first one work for the
> 127.0.0.1 url?
In this case, "127.0.0.1" is considered a numerical host *name*. This could
potentially be different from the actual IP address that received the
request. So if you want to accept this kind numerical host names, you need
to explicitely allow them in the "allowedNames" list.
Best regards,
Jerome