Is there a way to enable CORS at server level somehow, as some param when servers start, or in some config file?
I know I can use custom ContainerResponseFilterfilter
but wondering is there some other way?
(Payara 5.2020.5, community edition)
There is no explicit way to enable CORS at the server level. However, you can configure it through web.xml apart from Filter
Also, the Payara server has a feature that allows CORS headers support to Microprofile OpenAPI module- Eclipse MicroProfile OpenAPI API :: Payara Community Documentation