CorsFeature SetPreflightMaxAge

I want to know if there is a way for Cors to set the preflight (OPTIONS) max age cache control header?

In ASP.Net you do it as follows:
image

However I do not see such an option for ServiceStack’s CoresFeature. Or is there another way to implement this?

More info: https://blog.bitsrc.io/4-ways-to-reduce-cors-preflight-time-in-web-apps-1f47fe7558

The Access-Control-Max-Age CORS HTTP Header is set with maxAge, e.g:

Plugins.Add(new CorsFeature(maxAge:600)); // Chrome max is 600s
1 Like