I'm trying to call a ScriptRunner method from a domain different than the one used with Jira. Using JavaScript I'm making a cross-domain request, and receiving the following error:
Access to XMLHttpRequest at '<<jira url>>' from origin '<<non-jira url>>' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
There is a ScriptRunner method that accepts GET methods, which is working fine, but this appears when trying to use a POST method.
I'm fairly certain I have all of the CORS pieces setup, except for allowing of the pre-flight OPTIONS request.
It seems that this won't work without the OPTIONS method being supported by the `httpMethod` parameter in the Groovy ScriptRunner script.
Any ideas how to get this to work?