As of Composer 2.2.0, the allow-plugins option adds a layer of security allowing you to restrict which Composer plugins are able to execute code during a Composer run.
composer create-project and composer update.drupal/core-composer-scaffold contains a Composer plugin which is blocked by your allow-plugins config. You may add it to the list if you consider it safe. See https://getcomposer.org/allow-plugins
You can run "composer config --no-plugins allow-plugins.drupal/core-composer-scaffold [truefalse]" to enable it (true) or keep it disabled and suppress this warning (false)Resolution -Add an "allow-plugins" sub-section in the "config" section of the appropriate composer.json templates. At a minimum you need to add in the following plugins. Depending on your Drupal configuration, you may need to add other plugins which are affected.
"config": {
"sort-packages": true,
"allow-plugins": {
"composer/installers": true,
"drupal/core-composer-scaffold": true,
"drupal/core-project-message": true
}
},
You can see these Drupal.org issues for more details -