ASP.NET: API Cors Policy

Cors policy is something we all face when writing a Backend API.
This is a simple example of adding a wildcard domain.

ASP.NET Core 9 (Program.cs)

builder.Services.AddCors(options =>
{
    options.AddPolicy("AllowItchZone", policy =>
    {
        policy.SetIsOriginAllowed(origin =>
        {
            var uri = new Uri(origin);
            return uri.Host == "domain.com" || uri.Host.EndsWith(".domain.com");
        })
        .AllowAnyMethod()
        .AllowAnyHeader()
        .AllowCredentials();
    });
});

Blender: Export FBX to Unity with proper rotation

Blender 4.4.0
Unity 6.1 (6000.1.8f1)

Specific settings must be configured for both Blender and Unity for Unity to have proper rotation.

Step 1) Blender Export -> FBX settings must match the image below.
(Don’t forget to Apply All Transformation on model before exporting)

Step 2) After importing the FBX into Unity, Check the “Model” tab inside the imported file’s Inspector. Check “Bake Axis Conversion” and hit Apply.

Blender: Mixamo import to Blender scale fix

When importing Mixamo’s FBX to Blender, the Scale value is not 1.
Applying Scale resets the value to 1, but global location is not correct.

Fix ) CTRL + A to open Transform Menu and choose “All Transforms to Deltas”