For use of ArcGIS REST securing service I need to add a token to its URL. There are some parameters that should be passed to the server to generate a token, it is explained here
https://developers.arcgis.com/rest/users-groups-and-items/generate-token.htm
For example, for "IP address" case
username=admin&password=test1234&client=requestip&ip=&referer=&expiration=60&f=json
A token is really generated but it is wrong. Only when I use more short string such as
username=admin&password=test1234&expiration=60&f=json
it returns a valid token. But it should be default case that is case of HTTP referer. So I need to know why this way does not work. It works in previous versions of ArcGIS server, but does not work in the last one - ARCGIS 10.9