OptionalallowedOrigin: stringThe allowed origin. By default it will use the request origin.
OptionalallowedHeaders: string[]Array of allowed headers.
OptionalallowedMethods: string[]Array of allowed HTTP methods.
Protected_Sets the allowed origin. By default,
CORSMiddleware is used to enable CORS on APIs. It will automatically add the necessary headers necessary to communicate with CORS enabled clients.