Trust layer metadata can be defined at the project level. A new project reading flag was added which allows the forcing of trust layer metadata.
For QGIS server, the trust layer metadata option can be overridden with QGIS_SERVER_TRUST_LAYER_METADATA
environment variable.