79390145

Date: 2025-01-27 08:54:34
Score: 1.5
Natty:
Report link

can use like this

   builder.Services.AddCors(options =>
    {
        options.AddPolicy("AllowAll", builder =>
        {
            builder.AllowAnyOrigin()
                .AllowAnyMethod()
                .AllowAnyHeader();
        });
    }); 
    var app = builder.Build();
    app.UseCors("AllowAll");
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): can u
  • Low reputation (1):
Posted by: Zin Min Aung