ServiceStack REST API and CORS
Using the CorsFeature plugin Enabling Global CORS support We now have a CorsFeature which wraps CORS headers into the Plugin below to make it much easier to add CORS support to your ServiceStack services. Commonly this is now all that’s needed: Plugins.Add(new CorsFeature()); Which uses the default values: CorsFeature(allowedOrigins:”*”, allowedMethods:”GET, POST, PUT, DELETE, OPTIONS”, allowedHeaders:”Content-Type”, … Read more