The OutSystems App A receives data from an external producer B. B uses the OPTIONS API HTTP method for handshake, but OutSystems doesn't support it. Even using the OnBeforeRequest stage isn't possible because OutSystems sends an error, and I can't manage the request.
{ "Message": "The requested resource does not support the HTTP method 'OPTIONS'." }
Does anyone have any ideas on how to handle OPTIONS method requests in OutSystems?
I've attempted to add "Access-Control-Allow-Methods: GET, POST, OPTIONS" following instructions from João Pêgas, but it hasn't been helpful.
Hi Viktar,
Unfortunately, this is not possible. If you really need this functionality, I suggest you look into using an API gateway in the cloud, that can convert the request and send it to your OutSystems app for further processing.
Hi Kilian,
After careful investigation and testing, we succeeded in bypassing the OPTIONS request on the producer's side :)
Good to hear :). Happy coding!
Hello, How did you do that?
Hi Diogo,
They adjusted the settings in the external system, so it no longer sends OPTIONS method requests. As a result, I didn’t need to make any customisations on the OutSystems side