asp.net core allow all origins
public void ConfigureServices(IServiceCollection services)
{
services.AddCors(options =>
{
options.AddPolicy(MyAllowSpecificOrigins,
builder =>
{
builder.WithOrigins("http://example.com",
"http://www.contoso.com")
.AllowAnyHeader()
.AllowAnyMethod();
});
});
services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_2);
}
Also in C#:
- unity array c#
- c# trim string
- how does Pow work C#
- unity onclick object
- bitmap to byte array c#
- how to compare datetime in c#
- how to get the last element in an array in c#
- vb.net check if datatable has rows
- read embedded resource c# xml
- foreach c#
- c sharp index of substring
- git checkout reset hard
- unity rotate vector
- how to reference scripts in other scenes unity
- how to generate random numbers in c#
- how to get component in unity c#
- variables
- how to get length of okobjectresult c#
- c# serialize
- unity pro version free download
- how to find the type of a object c#
- c# object clone
- blazor onchange event not firing with inputselect
- asp.net textarea disable resize