Custom REST controller responds OK despite jmix.rest.authenticated-url-patterns value

jmix.rest.authenticated-url-patterns = /api/**

Custom REST controller responds 401 Unauthorized only when response header Authorization starts from Bearer.
In any other case (no Authorization header, Basic Authorization, etc.) controller response 200 and html page generated by Vaadin.

Hi,

Here is the issue about this problem: Bad response when trying to get access to url without token · Issue #1909 · jmix-framework/jmix · GitHub