I\'m requesting an endpoint that creates a new resource and returns a 201 response containing a \"Location\" header with the newly created resource:
However
Response.Headers.Append("myCaptchaName", "value");
services.AddCors(options =>
{
options.AddPolicy("AllowMyOrigin",
builder => builder.WithOrigins("http://localhost:4200").AllowAnyHeader().
AllowAnyMethod().AllowCredentials()
.WithExposedHeaders("myCaptchaName"));
});
services.Configure(options =>
{
options.Filters.Add(new CorsAuthorizationFilterFactory("AllowMyOrigin"));
});