Drupal 10.1 introduced an updated add_css ajax command that does not require an 'unsafe-inline' exception.
add_css
'unsafe-inline'
^10.1.3
core/drupal.ajax
Postponed
2.0
Code
I would like to get at least one release with ^10.0 support out before bumping to ^10.1
^10.0
^10.1