We have two UI on SPA, one its app itself and another login UI. App calls several our backend services mostly API. Penetration testing showed that we must add CSP header.
Strange that in testing report they point calls from our login UI likes:
/assets/ourConfig.js
/assets/scripts/ourScript.js
And call
/.well-known/openid-configuration
And several PUT methods on api service that return simple OkResult()
Which services and when should send CSP headers? All service API?

CSP is needed on pages with content, typically with content type "text/html". The resources that become content on a page don't need a CSP, neither does redirects. But it is adviced to use a CSP with "frame-ancestors 'none';" on APIs to prevent certain drag'n'drop style attacks.