53
Views
5
Comments
Solved
OPTIONS API HTTP method
Application Type
Reactive
Service Studio Version
11.54.53 (Build 63220)
Platform Version
11.22.0 (Build 39859)

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.

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP
Solution

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.

2022-10-19 00-51-44
Viktar Ramaneika

Hi Kilian,

After careful investigation and testing, we succeeded in bypassing the OPTIONS request on the producer's side :)

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP
2023-11-10 11-46-42
Diogo Barbosa
2022-10-19 00-51-44
Viktar Ramaneika

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

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.