Hi,
HttpApi supports OPTIONS request itself so processing of OPTIONS is disabled on http server level.
check more at OpenAPI Specification - Version 2.0 | Swagger
some ideas for your case:
- create route for
OPTIONSand return 204. it can be done via TROHttpApiResult. - use Using OnCustomResponseEvent in a ROSDK Server snippet. You can handle
OPTIONSand pass the rest to standard HttpApi dispatcher. custom processing for HttpApi was already discussed in related threads. - create descendant of TROHttpApiDispatcher and override
Processmethod