RouteFilter to Set CORS configuration for a route
On this page
Route Filter for CORS
To specify, per-Route CORS policy, this filter can be used
Filter Config
apiVersion: enroute.saaras.io/v1
kind: RouteFilter
metadata:
name: route-cors
namespace: httpbin
spec:
name: route-cors
routeFilterConfig:
config: |
{
"access_control_allow_methods" : "GET, OPTIONS",
"access_control_allow_headers" : "Content-Type",
"access_control_expose_headers" : "*",
"access_control_max_age" : "120",
"allow_credentials" : false
}
type: route_filter_cors