Overview
The 405 error occurs when a cross-origin request is initiated, and the Origin server specified in the request headers does not align with the expected server. This issue arises when the Origin server differs from the URL of the requested resource.
Resolution
Ensure the Origin server is whitelisted in the application's "Allowed Request Origins" setting (Home → Settings → Common).
Allowed Requests
There is no Origin header.
The Origin header value matches the requested URL or resource.
The Origin header value is in the "Allowed Request Origins" setting.
All other requests will result in a 405 error.
How to identify the Origin URL
The origin URL can be found in the os.log file (Home → Extras → Errors → View logs).
E.g.
ERROR com.krishagni.catissueplus.rest.filter.AuthTokenFilter - Requests from the origin <URL> are not allowed to the URL: <URL>.
The request should succeed without a 405 error.