Page 1 of 1

detect REST call in plugin

Posted: 06 Apr 2023, 17:21
by dcburleigh
Is there a way for a plugin to determine if Mantis is being accessed via a REST API call vs. the web UI?

I'm using the Basic_Auth plugin, which fails if the api is called, because the REMOTE_USER is not set.