Avoid 405 error when building a plugin for Jira 8 and 9

Isn’t this solution simple enough?