Why CORS request failing only in Firefox on Fedora?

I can’t make Firefox to trust CA’s so CORS function properly. This works in Chrome fine though.

cors error

I’ve done the followings so far:

Set these in Firefox to true:
security.enterprise_roots.enabled
network.cors_preflight.allow_client_cert

Also modified a working policy which works in Ubuntu.

sudo cat <<EOF | sudo tee /usr/lib64/firefox/distribution/policies.json
{
    "policies": {
        "Certificates": {
            "Install": [
                "/etc/pki/ca-trust/source/anchors/aspnet/https.crt"
            ]
        }
    }
}
EOF

The original Ubuntu code is:

sudo cat <<EOF | sudo tee /usr/lib/firefox/distribution/policies.json
{
    "policies": {
        "Certificates": {
            "Install": [
                "/usr/local/share/ca-certificates/aspnet/https.crt"
            ]
        }
    }
}
EOF

The application is written in .NET 7.0 + Angular 16