ServiceStack.WebHost.Endpoints.Tests.CorsFeaturePluginTests.Can_Get_CORS_Headers_with_not_found_OPTIONS_Request C# (CSharp) Method

Can_Get_CORS_Headers_with_not_found_OPTIONS_Request() private method

        public void Can_Get_CORS_Headers_with_not_found_OPTIONS_Request()
        {
            "{0}/notfound".Fmt(Config.ServiceStackBaseUri).OptionsFromUrl(responseFilter: r =>
            {
                Assert.That(r.Headers[HttpHeaders.AllowOrigin], Is.EqualTo(CorsFeature.DefaultOrigin));
                Assert.That(r.Headers[HttpHeaders.AllowMethods], Is.EqualTo(CorsFeature.DefaultMethods));
                Assert.That(r.Headers[HttpHeaders.AllowHeaders], Is.EqualTo(CorsFeature.DefaultHeaders));
            });
        }
    }