Kibana uses the kbn-version and kbn-name headers to prevent XSRF attacks

Could anyone please explain how Kibana uses the kbn-version and kbn-name headers to prevent XSRF attacks.

You can find details here https://github.com/elastic/kibana/pull/100814

Thanks @Mikhail_Shustov