What are the potential pitfalls of adding exceptions for multiple scripts in different folders when implementing Content Security Policy in PHP?

When adding exceptions for multiple scripts in different folders in Content Security Policy (CSP) in PHP, a potential pitfall is the increased complexity and potential for errors in managing and maintaining the list of exceptions. To solve this issue, it is recommended to organize scripts into specific folders and use wildcard characters to target multiple scripts within those folders.

header("Content-Security-Policy: script-src 'self' 'unsafe-inline' 'unsafe-eval' https://cdn.example.com/; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://cdn.anotherexample.com/; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://cdn.yetanotherexample.com/");