Exclude plugin from JSM redirect

Hi Community,

following problem:

We´re having a custom plugin which is allowed to be accessed anonymus and with active login. The plugin is created in Jira default context (Jira Software layout).

When the user has Jira Software permission or access anonymus the plugin works fine. If the user has JSM permission only the plugin is always redirected to JSM portal before accessing the plugin.
It seems there is a permission check filter which redirects before our plugin is loaded.

How can we suspend/exclude our plugin from this check or is there an annotation to add to prevert the check.

Kind regards